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
|
FROM base AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
ARG DATABASE_URL
|
||||||
|
ENV DATABASE_URL=$DATABASE_URL
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN npx prisma generate
|
RUN npx prisma generate
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ services:
|
|||||||
- workparking_pgdata:/var/lib/postgresql/data
|
- workparking_pgdata:/var/lib/postgresql/data
|
||||||
|
|
||||||
workparking:
|
workparking:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
args:
|
||||||
|
DATABASE_URL: postgresql://workparking:change_me_strong_password@db:5432/workparking?schema=public
|
||||||
container_name: workparking
|
container_name: workparking
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user