feat: add Dockerfile

This commit is contained in:
Ricardo Arturo Cabral Mejia
2022-01-31 22:01:19 +00:00
parent 824cbf6653
commit 8976717a25
2 changed files with 17 additions and 0 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
node_modules/
dist/
.git

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node:14-alpine as build
WORKDIR /app
COPY index.html main.js package.json webpack.config.js /app/
RUN yarn \
&& npm run build
FROM nginx:stable-alpine as nginx-nostr-relay-registry
COPY ./nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /app