standalone is not ready yet
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user