mirror of
https://github.com/aljazceru/nostr-watch.git
synced 2025-12-17 05:24:19 +01:00
feat: add Dockerfile
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
.git
|
||||||
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user