forked from phoreproject/Phore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (17 loc) · 652 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y wget pwgen
ARG RPC_USER
ARG RPC_PASSWORD
ENV RPC_USER ${RPC_USER:-phore}
# Create a random password if the user doesn't set one
ENV RANDOM_PASS `pwgen -Bs1 12`
ENV RPC_PASSWORD ${RPC_PASSWORD:-$RANDOM_PASS}
# Build the project
RUN wget https://github.com/phoreproject/Phore/releases/download/v1.2.0.0/phore-1.1.0-x86_64-linux-gnu.tar.gz -O phore-1.1.0.tar.gz
RUN tar -xvf phore-1.1.0.tar.gz
RUN mkdir -p /root/.phore/
RUN echo "rpcuser=$RPC_USER\nrpcpassword=$RPC_PASSWORD" > /root/.phore/phore.conf
EXPOSE 8332 8333 18332 18333
WORKDIR /phore-1.1.0/bin
CMD ["/phore-1.1.0/bin/phored"]