You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
348 B

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