Files
nostr-watch/Dockerfile
2022-11-22 18:06:56 +01:00

20 lines
352 B
Docker

FROM node:14-alpine as build
WORKDIR /app
COPY . /app/
RUN yarn \
&& yarn build
RUN yarn global add yaml2json
RUN yaml2json relays.yaml > dist/relays.json
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/public /app
COPY --from=build /app/dist /app