fix(docker): API URL as build arg
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user