fix: docker again

This commit is contained in:
2026-09-20 00:34:27 +02:00
parent e5599c718c
commit 00dc9eebe1
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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/
+2 -2
View File
@@ -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