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"]