add docker

This commit is contained in:
2023-06-13 21:26:11 +03:00
parent 5e6bdacdbb
commit 618fc16ed8
4 changed files with 41 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:20-slim as build
WORKDIR /opt
COPY ./package.json /opt/package.json
COPY ./package-lock.json /opt/package-lock.json
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.24-alpine-slim
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /opt/dist /usr/share/nginx/html