Update Dockerfile

This commit is contained in:
Bryan 2025-09-22 19:53:14 +08:00
parent c13e873cba
commit 0d8e378698

View File

@ -1,8 +1,14 @@
FROM nginx:stable-alpine FROM node:18-alpine
COPY dist/ /usr/share/nginx/html/ WORKDIR /app
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 COPY .next ./.next
COPY node_modules ./node_modules
COPY package.json package-lock.json* ./
COPY public ./public
CMD ["nginx", "-g", "daemon off;"] ENV NODE_ENV=production
EXPOSE 3000
CMD ["yarn", "start"]