Bugfix: pdf.worker.min.mjs was not copied to docker image

This commit is contained in:
2024-02-12 15:47:30 +01:00
parent f4b0c95219
commit c9971fce62

View File

@@ -36,7 +36,8 @@ ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
# COPY --from=builder /app/public ./public
# this file is required for the pdfjs-dist package
COPY --from=builder /app/node_modules/pdfjs-dist/build/pdf.worker.min.mjs /public/pdf.worker.min.mjs
# Set the correct permission for prerender cache
RUN mkdir .next