Update Dockerfile - Creating witness_node_data_dir and taking example config.ini (will be used to mount so config can be changed on fly)
This commit is contained in:
parent
e5c1c3cd1b
commit
f1f969b207
1 changed files with 7 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ RUN \
|
||||||
# Add local source
|
# Add local source
|
||||||
ADD . peerplays
|
ADD . peerplays
|
||||||
|
|
||||||
|
|
||||||
# Configure and build Peerplays
|
# Configure and build Peerplays
|
||||||
RUN \
|
RUN \
|
||||||
cd peerplays && \
|
cd peerplays && \
|
||||||
|
|
@ -50,14 +51,19 @@ RUN \
|
||||||
# Fresh image for running compiled binaries
|
# Fresh image for running compiled binaries
|
||||||
FROM ubuntu:20.04
|
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 && \
|
RUN apt update -y && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt install -y \
|
DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||||
curl \
|
curl \
|
||||||
|
nano \
|
||||||
libzmq5 && \
|
libzmq5 && \
|
||||||
groupadd peerplays && \
|
groupadd peerplays && \
|
||||||
useradd -rm -d /home/peerplays -s /bin/bash -g peerplays -u 1000 peerplays && \
|
useradd -rm -d /home/peerplays -s /bin/bash -g peerplays -u 1000 peerplays && \
|
||||||
chown -R peerplays:peerplays /home/peerplays/
|
chown -R peerplays:peerplays /home/peerplays/
|
||||||
|
|
||||||
|
|
||||||
USER peerplays
|
USER peerplays
|
||||||
|
|
||||||
WORKDIR /home/peerplays/
|
WORKDIR /home/peerplays/
|
||||||
|
|
@ -65,7 +71,7 @@ WORKDIR /home/peerplays/
|
||||||
# Copying the build artifacts from the above ubuntu-build image
|
# 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/witness_node/witness_node .
|
||||||
COPY --from=deps /home/peerplays/peerplays/build/programs/cli_wallet/cli_wallet .
|
COPY --from=deps /home/peerplays/peerplays/build/programs/cli_wallet/cli_wallet .
|
||||||
COPY --from=deps /home/peerplays/peerplays/genesis-mainet.json .
|
|
||||||
|
|
||||||
# Peerplays RPC
|
# Peerplays RPC
|
||||||
EXPOSE 8090
|
EXPOSE 8090
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue