123
This commit is contained in:
@ -98,6 +98,8 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile.web
|
||||
args:
|
||||
API_URL: http://api:3125
|
||||
container_name: coursecraft-web
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
|
||||
@ -15,6 +15,10 @@ RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
# API_URL нужен на этапе сборки: Next.js «запекает» rewrites в билд
|
||||
ARG API_URL=http://api:3125
|
||||
ENV API_URL=${API_URL}
|
||||
|
||||
RUN pnpm build --filter=@coursecraft/web...
|
||||
|
||||
EXPOSE 3080
|
||||
|
||||
Reference in New Issue
Block a user