Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm

RUN cat > pnpm-workspace.yaml << EOF
strictDepBuilds: false
EOF

RUN pnpm install --frozen-lockfile

# Rebuild the source code only when needed
Expand Down Expand Up @@ -41,8 +46,17 @@ RUN set -x \
&& apk add --no-cache curl \
&& npm install -g pnpm

RUN echo {} > package.json
Comment thread
Maxime-J marked this conversation as resolved.

RUN cat > pnpm-workspace.yaml << EOF
allowBuilds:
'@prisma/engines': true
prisma: false
verifyDepsBeforeRun: false
EOF

# Script dependencies
RUN pnpm --allow-build='@prisma/engines' add npm-run-all dotenv chalk semver \
RUN pnpm add npm-run-all dotenv chalk semver \
prisma@${PRISMA_VERSION} \
@prisma/client@${PRISMA_VERSION} \
@prisma/adapter-pg@${PRISMA_VERSION}
Expand Down
15 changes: 8 additions & 7 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
packages:
- '**'
ignoredBuiltDependencies:
- esbuild
- sharp
onlyBuiltDependencies:
- '@prisma/client'
- '@prisma/engines'
- prisma
allowBuilds:
'@parcel/watcher': false
'@prisma/engines': true
'@swc/core': false
esbuild: false
msw: false
prisma: true
sharp: false
Comment thread
Maxime-J marked this conversation as resolved.