Botanique/Dockerfile

14 lines
229 B
Text
Raw Normal View History

2022-07-03 18:58:41 +02:00
# syntax=docker/dockerfile:1
FROM node:16.15.0-alpine3.15
RUN apk add dumb-init
ENV NODE_ENV=production
2022-07-03 19:10:12 +02:00
USER node
2022-07-03 18:58:41 +02:00
WORKDIR /app
2022-07-03 19:10:12 +02:00
COPY --chown=node:node . .
2022-07-03 18:58:41 +02:00
RUN npm ci --only=production
CMD ["dumb-init", "node", "src/index.js"]