Skip to content

Commit

Permalink
fix: broken docker dev config
Browse files Browse the repository at this point in the history
Workaround for openssl since prisma version < 4.8.0: prisma/prisma#16553
  • Loading branch information
murgle2 authored and tsa96 committed Mar 16, 2023
1 parent 7b3711d commit 69c8938
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.override.yml
Expand Up @@ -63,6 +63,6 @@ services:
ports:
- "9229:9229" # Expose for NodeJS debugging
build:
context: ./
context: ./server
dockerfile: dev.Dockerfile
command: npm run ${CMD:-start:push:debug}
6 changes: 6 additions & 0 deletions server/dev.Dockerfile
Expand Up @@ -13,8 +13,14 @@ RUN npm i

COPY . .

RUN apk update
RUN apk add openssl1.1-compat

RUN npx prisma generate

FROM node:18-alpine

RUN apk update
RUN apk add openssl1.1-compat

COPY --from=builder /app/. ./

0 comments on commit 69c8938

Please sign in to comment.