This commit is contained in:
2026-02-06 12:00:44 +03:00
parent fd7bf76abd
commit d654b1ffc8
2 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,8 @@ services:
build: build:
context: . context: .
dockerfile: docker/Dockerfile.web dockerfile: docker/Dockerfile.web
args:
API_URL: http://api:3125
container_name: coursecraft-web container_name: coursecraft-web
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env

View File

@ -15,6 +15,10 @@ RUN pnpm install --frozen-lockfile
COPY . . COPY . .
# API_URL нужен на этапе сборки: Next.js «запекает» rewrites в билд
ARG API_URL=http://api:3125
ENV API_URL=${API_URL}
RUN pnpm build --filter=@coursecraft/web... RUN pnpm build --filter=@coursecraft/web...
EXPOSE 3080 EXPOSE 3080