diff --git a/Dockerfile b/Dockerfile index 9b81c95..b63bc30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,7 @@ COPY --from=builder /app/public ./public # 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/entrypoint.sh ./entrypoint.sh USER nextjs @@ -63,6 +64,5 @@ EXPOSE 3000 ENV PORT 3000 -COPY entrypoint.sh ./ -ENTRYPOINT ["/entrypoint.sh"] +ENTRYPOINT ["/app/entrypoint.sh"] CMD ["node", "server.js"] \ No newline at end of file