From 12c0ca1177b77c9e64dbb7e2f2af25881b40a7b2 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Mon, 26 May 2025 19:54:42 -0400 Subject: [PATCH] Fixed build var --- .gitea/workflows/release.yml | 2 +- Dockerfile | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e53155a..c9f5091 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -57,4 +57,4 @@ jobs: git.vpn.cusano.net/logan/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} git.vpn.cusano.net/logan/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} build-args: | - NEXT_PUBLIC_DRB_BASE_API_URL=${{ var.DRB_BASE_API_URL }} \ No newline at end of file + NEXT_PUBLIC_DRB_BASE_API_URL=${{ vars.DRB_BASE_API_URL }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 641f8fd..63a1071 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,14 +3,9 @@ FROM node:22-alpine AS deps WORKDIR /app # Install dependencies based on your package manager -# If you use npm: COPY package.json package-lock.json ./ RUN npm ci -# If you use yarn: -# COPY package.json yarn.lock ./ -# RUN yarn install --frozen-lockfile - # Stage 2: Build the Next.js application (production build) FROM node:22-alpine AS builder WORKDIR /app @@ -19,9 +14,9 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Add an ARG for NEXT_PUBLIC_DRB_BASE_API_URL +# Declare the build argument ARG NEXT_PUBLIC_DRB_BASE_API_URL -# Set it as an ENV variable for the build +# Set the environment variable for the build stage from the build argument ENV NEXT_PUBLIC_DRB_BASE_API_URL=${NEXT_PUBLIC_DRB_BASE_API_URL} # Build the Next.js application for production