Add Docker image configs
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Râu Cao 2022-08-08 18:18:03 +02:00
parent 2b314556ad
commit c55593d46f
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
2 changed files with 19 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
.openzeppelin
artifacts
cache
deployments
gitno
node_modules

13
Dockerfile Normal file
View File

@ -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