diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0a5193 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:19-alpine as frontend +WORKDIR /frontend +COPY ./package.json ./ +RUN npm install +COPY . . +RUN npm run build + +FROM nginx:1.19 +WORKDIR /nginx +COPY ./nginx/conf.d /etc/nginx/conf.d +COPY --from=frontend /frontend/dist /usr/local/nginx/html \ No newline at end of file