forked from wexpertsystems/urbit-bitcoin-node
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (24 loc) · 843 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM debian:buster-slim
ARG UID=1000
ARG GID=1000
ARG username=umbrel
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt-get update && apt-get install -y vim procps nginx nodejs git sudo
ADD https://api.github.com/repos/urbit/urbit-bitcoin-rpc/git/refs/heads/master version.json
RUN git clone -b master https://github.com/urbit/urbit-bitcoin-rpc.git urbit-bitcoin-rpc
RUN cp -r /urbit-bitcoin-rpc/. /
ADD /rpc/mainnet-start.sh /mainnet-start.sh
ADD /rpc/server.js /src/server.js
# temp copy of index to overwrite with env var IP
ADD /index/index.html /index.html
# main index files
RUN mkdir /index
ADD index /index
ADD nginx.conf /etc/nginx/conf.d/nginx.conf
RUN npm install express
RUN npm audit fix
USER $USERNAME
EXPOSE 55555
EXPOSE 9090
ENTRYPOINT ["/mainnet-start.sh"]