diff --git a/docker/ubuntu20/Dockerfile b/docker/ubuntu20/Dockerfile index 3e7d2436..e1f7313d 100644 --- a/docker/ubuntu20/Dockerfile +++ b/docker/ubuntu20/Dockerfile @@ -37,6 +37,7 @@ RUN \ # Add local source ADD . peerplays + # Configure and build Peerplays RUN \ cd peerplays && \ @@ -50,14 +51,19 @@ RUN \ # Fresh image for running compiled binaries FROM ubuntu:20.04 +WORKDIR /home/peerplays/witness_node_data_dir/ +COPY --from=deps /home/peerplays/peerplays/example.config.ini /home/peerplays/witness_node_data_dir/config.ini + RUN apt update -y && \ DEBIAN_FRONTEND=noninteractive apt install -y \ curl \ + nano \ libzmq5 && \ groupadd peerplays && \ useradd -rm -d /home/peerplays -s /bin/bash -g peerplays -u 1000 peerplays && \ chown -R peerplays:peerplays /home/peerplays/ + USER peerplays WORKDIR /home/peerplays/ @@ -65,7 +71,7 @@ WORKDIR /home/peerplays/ # Copying the build artifacts from the above ubuntu-build image COPY --from=deps /home/peerplays/peerplays/build/programs/witness_node/witness_node . COPY --from=deps /home/peerplays/peerplays/build/programs/cli_wallet/cli_wallet . -COPY --from=deps /home/peerplays/peerplays/genesis-mainet.json . + # Peerplays RPC EXPOSE 8090