fix docker build for prisma env
All checks were successful
Auto Deploy / deploy (push) Successful in 18s

This commit is contained in:
deonisii
2026-04-17 16:17:53 +03:00
parent 64e8a4427d
commit 988574e4d7
2 changed files with 9 additions and 1 deletions

View File

@@ -7,8 +7,13 @@ RUN npm ci
FROM base AS builder
WORKDIR /app
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npx prisma generate
RUN npm run build

View File

@@ -13,7 +13,10 @@ services:
- workparking_pgdata:/var/lib/postgresql/data
workparking:
build: .
build:
context: .
args:
DATABASE_URL: postgresql://workparking:change_me_strong_password@db:5432/workparking?schema=public
container_name: workparking
restart: unless-stopped
environment: