Dockerized application, added readme and logotype

This commit is contained in:
2021-10-17 20:51:47 +03:00
parent 48589d80f9
commit e3d1b989fb
4 changed files with 128 additions and 5 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node:alpine AS builder
WORKDIR /app
COPY ./package.json ./
RUN npm install
COPY ./ ./
RUN NODE_ENV=production npm run build
FROM node:alpine
RUN npm install serve -g --silent
WORKDIR /app
COPY --from=builder /app/dist .
EXPOSE 80
CMD ["serve", "-p", "80", "-s", "."]