fix docker build for prisma env
All checks were successful
Auto Deploy / deploy (push) Successful in 18s
All checks were successful
Auto Deploy / deploy (push) Successful in 18s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user