123
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user