mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-12-22 17:03:46 +03:00
13 lines
308 B
Docker
13 lines
308 B
Docker
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 ./
|
|
COPY --from=build /app/dist/ ./dist/
|
|
RUN npm install --omit=dev
|
|
CMD npm run start
|
|
EXPOSE 80
|