Browse Source

feat: add Dockerfile

update/libraries
Ricardo Arturo Cabral Mejia 3 years ago
parent
commit
8976717a25
No known key found for this signature in database GPG Key ID: 8949679922214342
  1. 3
      .dockerignore
  2. 14
      Dockerfile

3
.dockerignore

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

14
Dockerfile

@ -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
Loading…
Cancel
Save