fix: docker again
This commit is contained in:
@@ -2,6 +2,9 @@ FROM node:20-alpine AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
|
ARG NEXT_PUBLIC_API_URL
|
||||||
|
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:3001/api/v1}
|
||||||
|
|
||||||
COPY pnpm-workspace.yaml package.json tsconfig.base.json pnpm-lock.yaml ./
|
COPY pnpm-workspace.yaml package.json tsconfig.base.json pnpm-lock.yaml ./
|
||||||
COPY packages/shared/package.json packages/shared/
|
COPY packages/shared/package.json packages/shared/
|
||||||
COPY apps/api/package.json apps/api/
|
COPY apps/api/package.json apps/api/
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: dashboard
|
target: dashboard
|
||||||
|
args:
|
||||||
|
NEXT_PUBLIC_API_URL: "${API_URL:-http://localhost:3001}/api/v1"
|
||||||
ports:
|
ports:
|
||||||
- "${DASHBOARD_PORT:-3000}:3000"
|
- "${DASHBOARD_PORT:-3000}:3000"
|
||||||
environment:
|
|
||||||
NEXT_PUBLIC_API_URL: "${API_URL:-http://localhost:3001}/api/v1"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user