diff --git a/Dockerfile b/Dockerfile index 23c2fe4..eaec9e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,12 @@ -FROM nginx:alpine -COPY dist/ /usr/share/nginx/html/ -EXPOSE 80 \ No newline at end of file +FROM node:lts AS runtime +WORKDIR /app + +COPY . . + +RUN npm install +RUN npm run build + +ENV HOST=0.0.0.0 +ENV PORT=80 +EXPOSE 80 +CMD ["node", "./dist/server/entry.mjs"] \ No newline at end of file