Skip to content

Commit

Permalink
fix: docker prisma ssl (#249)
Browse files Browse the repository at this point in the history
* chore: add doc

* fix: use node16 for prisma ssl

* fix

* fix
  • Loading branch information
Julien Bouquillon authored Dec 1, 2023
1 parent 401ee4e commit 2cbaf72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.dockerignore
Dockerfile
Dockerfile
node_modules
8 changes: 6 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
FROM node:18.15.0-bullseye@sha256:16d7247706d3f3c52f0d7a8c73fe5805387d7c8007e1f7b05f6b5ef232ea5551

# Note: https://github.com/prisma/prisma/issues/16182#issuecomment-1371283457
FROM node:20-bullseye-slim@sha256:f959c0047e2cc2dc01459067d9e898b7780862e52f4e7e80bb674f6040298f32

ARG PRODUCTION

RUN apt-get update && apt-get install -y openssl
RUN mkdir /app && chown 1000:1000 /app

WORKDIR /app

COPY yarn.lock .yarnrc.yml ./
COPY --chown=1000:1000 .yarn .yarn

RUN yarn fetch workspaces focus --production && yarn cache clean

COPY . .
Expand All @@ -20,4 +24,4 @@ RUN npx prisma generate

USER 1000

ENTRYPOINT ["yarn", "start"]
ENTRYPOINT ["yarn", "start"]
1 change: 1 addition & 0 deletions api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

generator client {
provider = "prisma-client-js"
engineType = "binary"
}

datasource db {
Expand Down

0 comments on commit 2cbaf72

Please sign in to comment.