Bugfix: pdf.worker.min.mjs was not copied to docker image
This commit is contained in:
@@ -36,7 +36,8 @@ ENV NODE_ENV production
|
|||||||
RUN addgroup --system --gid 1001 nodejs
|
RUN addgroup --system --gid 1001 nodejs
|
||||||
RUN adduser --system --uid 1001 nextjs
|
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
|
# Set the correct permission for prerender cache
|
||||||
RUN mkdir .next
|
RUN mkdir .next
|
||||||
|
|||||||
Reference in New Issue
Block a user