diff --git a/Dockerfile b/Dockerfile index c371857..f561afc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,14 @@ -FROM nginx:stable-alpine +FROM node:18-alpine -COPY dist/ /usr/share/nginx/html/ -COPY nginx.conf /etc/nginx/conf.d/default.conf +WORKDIR /app -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"] \ No newline at end of file