AnoPaper/Dockerfile

14 lines
308 B
Text
Raw Permalink Normal View History

2023-09-11 11:58:01 +03:00
FROM node:18-alpine as build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM node:18-alpine as run
WORKDIR /app
2023-09-13 10:11:26 +03:00
COPY --from=build /app/package*.json /app/index.js /app/note_validator.js /app/core.js ./
COPY --from=build /app/dist/ ./dist/
2023-09-11 11:58:01 +03:00
RUN npm install --omit=dev
CMD npm run start
EXPOSE 80