mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-12-23 09:23:45 +03:00
14 lines
330 B
Text
14 lines
330 B
Text
|
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
|