Skip to content

Commit

Permalink
fix: prisma binary lib issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Dec 22, 2022
1 parent e3bf596 commit 9a2b7bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM ghcr.io/diced/prisma-binaries:4.7.x as prisma

FROM node:19-alpine

# Create user PaperPlane
Expand All @@ -6,10 +8,21 @@ RUN adduser --system --uid 1639 paperplane

# Create Directories with correct permissions
RUN mkdir -p /paperplane/node_modules && chown -R paperplane:paperplane /paperplane/
RUN mkdir -p /prisma-engines

# Move to correct dir
WORKDIR /paperplane

# Prisma binary libraries
COPY --from=prisma /prisma-engines /prisma-engines
ENV PRISMA_QUERY_ENGINE_BINARY=/prisma-engines/query-engine \
PRISMA_MIGRATION_ENGINE_BINARY=/prisma-engines/migration-engine \
PRISMA_INTROSPECTION_ENGINE_BINARY=/prisma-engines/introspection-engine \
PRISMA_FMT_BINARY=/prisma-engines/prisma-fmt \
PRISMA_CLI_QUERY_ENGINE_TYPE=binary \
PRISMA_CLIENT_ENGINE_TYPE=binary
RUN apk add --no-cache openssl openssl-dev

# Register Environment Variables
ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1
Expand Down

0 comments on commit 9a2b7bf

Please sign in to comment.