fix(docker): copy public folder after standalone to ensure assets are present
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 8m51s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 8m51s
This commit is contained in:
@@ -43,9 +43,10 @@ USER nextjs
|
|||||||
# Running as USER nextjs means files are already correctly owned — no slow chown -R needed afterwards.
|
# Running as USER nextjs means files are already correctly owned — no slow chown -R needed afterwards.
|
||||||
RUN npm install --omit=dev --legacy-peer-deps socket.io@4.7.4 @react-pdf/renderer@4.3.2 qrcode@1.5.4 --no-save
|
RUN npm install --omit=dev --legacy-peer-deps socket.io@4.7.4 @react-pdf/renderer@4.3.2 qrcode@1.5.4 --no-save
|
||||||
|
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/public ./public
|
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/.next/standalone ./
|
COPY --chown=nextjs:nodejs --from=builder /app/.next/standalone ./
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/.next/static ./.next/static
|
COPY --chown=nextjs:nodejs --from=builder /app/.next/static ./.next/static
|
||||||
|
# Ensure all public files (videos, images, etc.) are present in the runtime image
|
||||||
|
COPY --chown=nextjs:nodejs --from=builder /app/public ./public
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/.env ./.env
|
COPY --chown=nextjs:nodejs --from=builder /app/.env ./.env
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/prisma ./prisma
|
COPY --chown=nextjs:nodejs --from=builder /app/prisma ./prisma
|
||||||
COPY --chown=nextjs:nodejs --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
COPY --chown=nextjs:nodejs --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
||||||
|
|||||||
Reference in New Issue
Block a user