chore: update dockerfile env lagacy

This commit is contained in:
xfy
2024-11-20 16:20:04 +08:00
parent 726fbcc9af
commit a8e83750a3

View File

@ -38,7 +38,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& apk upgrade --no-cache \
&& apk add nodejs --no-cache
ENV NODE_ENV production
ENV NODE_ENV=production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
@ -54,7 +54,7 @@ USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV PORT=3000
# CMD ["node", "server.js"]
CMD HOSTNAME="0.0.0.0" node server.js