diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-11-10 11:24:59 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-11-10 11:24:59 +0000 |
| commit | 29384e8dfc88fbc4a2492a75a0aebcf5fb128db8 (patch) | |
| tree | 56a960a703677cedb66011f4642d63a88188c1f4 | |
| parent | run without leap (diff) | |
| download | leap-finger-scan-29384e8dfc88fbc4a2492a75a0aebcf5fb128db8.tar.gz leap-finger-scan-29384e8dfc88fbc4a2492a75a0aebcf5fb128db8.zip | |
dockerize
| -rw-r--r-- | .dockerignore | 3 | ||||
| -rw-r--r-- | .gitignore | 7 | ||||
| -rw-r--r-- | Dockerfile | 10 |
3 files changed, 20 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b763d82 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +dist +Dockerfile @@ -1 +1,8 @@ node_modules +server.comp.js +.DS_Store +dist +*.log +coverage +.idea +.vagrant diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7fa9402 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node AS build-env +WORKDIR /build +COPY package.json /build/ +RUN npm i +COPY . /build/ +RUN npm run build + +FROM nginx:alpine +COPY --from=build-env /build/dist /usr/share/nginx/html +RUN chmod 555 -R /usr/share/nginx/html |
