From 890703275a49e7a7d42e5f39816b8e58f5828261 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 3 Jul 2022 18:58:41 +0200 Subject: [PATCH] Add docker file --- docker/Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..3e8d8d1 --- /dev/null +++ b/docker/Dockerfile @@ -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"]