fix(docker): API URL as build arg

This commit is contained in:
2025-09-14 18:25:50 +01:00
parent 0eda8596a6
commit a6013efa9e
2 changed files with 5 additions and 2 deletions

View File

@@ -36,9 +36,9 @@ services:
build:
context: ../frontend
dockerfile: Dockerfile
container_name: codetutor-frontend
environment:
args:
NEXT_PUBLIC_API_URL: https://codetutor-demo.kschappell.com
container_name: codetutor-frontend
depends_on:
- backend
restart: unless-stopped

View File

@@ -14,6 +14,9 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
RUN npm run build
FROM base AS runner