Add docker

This commit is contained in:
SNGurt
2022-10-18 21:30:35 +03:00
parent b0b31b2ebc
commit 56d602ee07
4 changed files with 51 additions and 1 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:16-alpine AS builder
WORKDIR /front
COPY . .
RUN npm install
RUN npm run build
FROM nginx:1.21.6-alpine as runner
COPY ./deploy/nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /front/dist /var/www/html
EXPOSE 8888