fix(docker): ignore host node_modules and let prisma resolve engines automatically
Some checks failed
Deploy Canina / deploy (push) Failing after 34s
Some checks failed
Deploy Canina / deploy (push) Failing after 34s
This commit is contained in:
parent
b1a9d1a5ba
commit
8b0d3d972e
@ -1,4 +1,6 @@
|
|||||||
# dist
|
node_modules
|
||||||
|
.next
|
||||||
|
dist
|
||||||
.env
|
.env
|
||||||
.git
|
.git
|
||||||
.dockerignore
|
.dockerignore
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
|
node_modules
|
||||||
dist
|
dist
|
||||||
.env
|
.env
|
||||||
.git
|
.git
|
||||||
.dockerignore
|
.dockerignore
|
||||||
Dockerfile
|
Dockerfile
|
||||||
|
npm-debug.log
|
||||||
|
|||||||
@ -15,8 +15,6 @@ COPY package*.json ./
|
|||||||
RUN npm ci --prefer-offline --no-audit
|
RUN npm ci --prefer-offline --no-audit
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x
|
ENV PRISMA_CLI_BINARY_TARGETS=linux-musl-openssl-3.0.x
|
||||||
ENV PRISMA_SCHEMA_ENGINE_BINARY=/app/node_modules/@prisma/engines/schema-engine-linux-musl-openssl-3.0.x
|
|
||||||
ENV PRISMA_QUERY_ENGINE_LIBRARY=/app/node_modules/@prisma/engines/libquery_engine-linux-musl-openssl-3.0.x.so.node
|
|
||||||
RUN ./node_modules/.bin/prisma generate && npm run build
|
RUN ./node_modules/.bin/prisma generate && npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user