Docker support #19

Merged
Anri merged 5 commits from docker into main 2022-07-03 19:19:10 +02:00
Showing only changes of commit 5fd4d70bfb - Show all commits

View file

@ -3,15 +3,11 @@
FROM node:16.15.0-alpine3.15 FROM node:16.15.0-alpine3.15
RUN apk add dumb-init RUN apk add dumb-init
ENV NODE_ENV=production ENV NODE_ENV=production
USER node USER node
WORKDIR /app WORKDIR /app
COPY --chown=node:node . . COPY --chown=node:node . .
RUN npm ci --only=production RUN npm ci --only=production
CMD ["dumb-init", "node", "src/index.js"] CMD ["dumb-init", "node", "src/index.js"]