diff --git a/client/Dockerfile b/client/Dockerfile index 0fca3dd..906c3e3 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,5 +1,8 @@ FROM node:20-alpine +# Build argument for API URL +ARG NEXT_PUBLIC_API_URL=http://localhost:4000 + # Create app directory WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index dc54a40..518d5da 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: build: context: . dockerfile: client/Dockerfile + args: + - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:4000} ports: - "3000:3000" volumes: