diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6546a2b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.openzeppelin +artifacts +cache +deployments +gitno +node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b680ce3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# syntax=docker/dockerfile:1 + +FROM node:16.16 +#ENV NODE_ENV=production + +RUN useradd -ms /bin/bash drone + +WORKDIR /app +COPY ["package.json", "package-lock.json*", "./"] +RUN chown -R drone:drone /app +USER drone +RUN npm install +USER root