Add docker file

This commit is contained in:
Mylloon 2022-07-03 18:58:41 +02:00
parent 9f24b73ef8
commit 890703275a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

17
docker/Dockerfile Normal file
View file

@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM node:16.15.0-alpine3.15
RUN apk add dumb-init
ENV NODE_ENV=production
USER botanique
WORKDIR /app
COPY --chown=botanique:botanique . .
RUN npm ci --only=production
CMD ["dumb-init", "node", "src/index.js"]