diff --git a/.dockerignore b/.dockerignore index edbf8525..34abb82b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -16,6 +16,7 @@ **/compose* **/Dockerfile* **/node_modules +!node_modules/.pnpm/compressjs@*/** **/npm-debug.log **/obj **/secrets.dev.yaml diff --git a/Dockerfile b/Dockerfile index 9fec35e7..cdce22a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,7 @@ WORKDIR /app # Copy files from context (this allows the files to copy before the builder stage is done). COPY --link --chown=1000:1000 package.json next.config.js ./ COPY --link --chown=1000:1000 /public ./public/ +COPY --link ./node_modules/.pnpm/compressjs@1.0.3/node_modules/compressjs/lib/ ./node_modules/.pnpm/compressjs@1.0.3/node_modules/compressjs/lib/ # Copy files from builder COPY --link --from=builder --chown=1000:1000 /app/.next/standalone ./