standalone is not ready yet
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2022-11-06 23:17:51 +01:00
parent 3ac968a63c
commit 12f829c3d3
8 changed files with 53 additions and 14 deletions

View File

@@ -41,12 +41,9 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=git-log --chown=nextjs:nodejs /usr/bin/git-log /usr/bin/git-log
COPY --from=builder /app/public ./public
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/ ./
USER nextjs
@@ -54,4 +51,4 @@ EXPOSE 3000
ENV PORT 3000
CMD ["node", "server.js"]
CMD ["yarn", "start"]