Modify dockerfile
This commit is contained in:
@ -40,7 +40,9 @@ COPY --from=builder /base/next.config.mjs ./
|
||||
|
||||
# Production: serve the website
|
||||
FROM runner as prod
|
||||
EXPOSE 3000
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corepack enable
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["pnpm", "start:standalone"]
|
||||
|
Reference in New Issue
Block a user