rimgo/Dockerfile

20 lines
416 B
Docker
Raw Normal View History

2021-10-06 15:24:55 +00:00
FROM node:16-slim as builder
COPY . /app
WORKDIR /app
RUN npm ci && npm run build
FROM node:16-slim
COPY --from=builder /app/dist/ /app/
COPY --from=builder /app/package.json /app/
COPY --from=builder /app/package-lock.json /app/
COPY --from=builder /app/static/ /app/static/
COPY --from=builder /app/templates/ /app/templates/
WORKDIR /app
RUN npm install --production
CMD ["/usr/local/bin/node", "index.js"]