(bugfix) Dockerfile: hosts file was copied in wrong step
This commit is contained in:
@@ -12,9 +12,6 @@ RUN apk add --no-cache libc6-compat
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# copy custom hosts file to avoid issues with some auth providers
|
||||
COPY ./etc/hosts /etc/hosts
|
||||
|
||||
# Copy package files
|
||||
COPY ./package.json ./package-lock.json ./
|
||||
|
||||
@@ -41,6 +38,9 @@ COPY --from=builder /app/public/* /app/public/
|
||||
# this file is required for the pdfjs-dist package
|
||||
COPY --from=builder /app/node_modules/pdfjs-dist/build/pdf.worker.min.mjs /app/public/pdf.worker.min.mjs
|
||||
|
||||
# copy custom hosts file to avoid issues with some auth providers
|
||||
COPY ./etc/hosts /etc/hosts
|
||||
|
||||
# Automatically leverage output traces to reduce image size
|
||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||
COPY --from=builder --chown=nonroot:nonroot /app/.next/standalone ./
|
||||
|
||||
Reference in New Issue
Block a user