This commit is contained in:
Artemy 2023-09-11 11:58:01 +03:00
parent c34a6fe5c2
commit e02996355b
5 changed files with 23 additions and 51 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM node:18-alpine as build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM node:18-alpine as run
WORKDIR /app
COPY --from=build /app/package*.json /app/index.js /app/note_validator.js /app/core.js /usr/src/app/
COPY --from=build /app/dist/ /usr/src/app/dist/
RUN npm install --omit=dev
CMD npm run start
EXPOSE 80