2021-02-02 17:31:43 +01:00
|
|
|
FROM parity/parity:v2.5.13-stable
|
|
|
|
|
|
|
|
# root user for installing os dep's and setting file permissions
|
|
|
|
# RUN apt-get update && sudo apt-get -y install sed
|
|
|
|
USER root
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
# ARG BASE_PATH=root/.local/share/io.parity.ethereum/
|
|
|
|
ARG KEY_PATH=/root/keys/
|
|
|
|
# mount a key volume locally if you want to persist keys between runs
|
|
|
|
# to generate new account + keys run:
|
|
|
|
#
|
|
|
|
RUN mkdir -p $KEY_PATH
|
|
|
|
COPY ./validator/bloxberg.json \
|
|
|
|
./validator/bootnodes.txt \
|
|
|
|
./validator/validator.pwd \
|
|
|
|
./validator/validator.toml \
|
|
|
|
/root/
|
|
|
|
|
2021-02-11 11:14:30 +01:00
|
|
|
COPY keys/ /root/keys/
|
2021-02-06 17:26:20 +01:00
|
|
|
|
2021-02-02 17:31:43 +01:00
|
|
|
# RUN chown -R parity:parity $HOME/ && \
|
|
|
|
# chmod -R 775 $HOME/ && \
|
|
|
|
# chmod g+s $HOME/
|
|
|
|
# USER parity
|
|
|
|
|
|
|
|
ENTRYPOINT [ "parity" ]
|
2021-02-11 11:14:30 +01:00
|
|
|
CMD [ "--config", "/root/validator.toml", "--keys-path", "/root/keys/", "--password", "/root/validator.pwd" ]
|