mirror of
https://github.com/aljazceru/nostr-watch.git
synced 2025-12-17 05:24:19 +01:00
20 lines
352 B
Docker
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
|