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.
 
 
 
 

22 lines
433 B

FROM node:14-alpine as build
WORKDIR /app
COPY . /app/
RUN yarn && yarn build
# RUN yarn global add yaml2json yaml-doctor
# RUN yaml-doctor relays.yaml --fix
# RUN echo $(cat relays.yaml)
# 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