add docker

This commit is contained in:
Николай Вигдоров
2025-03-08 23:17:01 +03:00
parent 47abdbeb51
commit df563b26b4
2 changed files with 44 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
# build environment
FROM node:18 as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# production environment
FROM nginx:alpine
COPY --from=builder /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]