From 044996eebfbf862335aff2e6db0be868ce76a85e Mon Sep 17 00:00:00 2001 From: Sven Fischer Date: Sun, 17 Dec 2023 19:44:19 +0100 Subject: [PATCH] add Dockerfile --- .dockerignore | 5 +++++ Dockerfile | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2a7daf2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +**/dist +.git/ +**/node_modules/ +Dockerfile + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..38e0a64 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:16 + +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive \ + apt-get install --no-install-recommends --assume-yes \ + zip +USER node +WORKDIR /home/node +COPY --chown=node:node package.json /home/node/ +RUN npm install +COPY --chown=node:node . /home/node/ + +VOLUME /home/node/dist +CMD ["/home/node/dist.sh"]