fix: docker again
This commit is contained in:
@@ -2,6 +2,9 @@ FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
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 packages/shared/package.json packages/shared/
|
||||
COPY apps/api/package.json apps/api/
|
||||
|
||||
@@ -43,10 +43,10 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: dashboard
|
||||
args:
|
||||
NEXT_PUBLIC_API_URL: "${API_URL:-http://localhost:3001}/api/v1"
|
||||
ports:
|
||||
- "${DASHBOARD_PORT:-3000}:3000"
|
||||
environment:
|
||||
NEXT_PUBLIC_API_URL: "${API_URL:-http://localhost:3001}/api/v1"
|
||||
depends_on:
|
||||
- api
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user