Compare commits

..

2 Commits

Author SHA1 Message Date
Râu Cao
c55593d46f Add Docker image configs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-08 18:20:38 +02:00
Râu Cao
2b314556ad Set up Drone CI 2022-08-08 18:20:32 +02:00
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