sphinx-relay/Dockerfile
kevkevin 8bb64c54ae
adding back the rm package-lock.json and arm64 (#740)
* added back linux/arm64

* added back linux/arm64/v8

* added yarn in dockerfile

* added yarn in dockerfile

* added yarn in dockerfile

* Lint and format code

* Update proto files and types

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-01 17:24:36 -05:00

42 lines
699 B
Docker

FROM node:16-buster-slim AS builder
WORKDIR /relay
RUN mkdir /relay/.lnd
COPY --chown=1000:1000 . .
RUN apt-get update
RUN apt install -y make python3-minimal
RUN which python3
RUN apt install -y g++ gcc libmcrypt-dev
RUN apt-get -y install git
RUN rm ./package-lock.json
RUN npm install
RUN cp /relay/config/app.json /relay/dist/config/app.json
RUN cp /relay/config/config.json /relay/dist/config/config.json
RUN chown -R 1000:1000 /relay
FROM node:16-buster-slim
USER root
RUN apt-get update
RUN apt-get -y install git
USER 1000
WORKDIR /relay
COPY --from=builder /relay .
EXPOSE 3300
ENV NODE_ENV production
ENV NODE_SCHEME http
ENV PORT 3300
CMD [ "node", "/relay/dist/app.js" ]