2016-06-21 21:05:10 +02:00
|
|
|
FROM centos:latest
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
RUN mkdir -p /opt/parity/data && \
|
|
|
|
chmod g+rwX /opt/parity/data && \
|
|
|
|
mkdir -p /opt/parity/release
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
COPY parity/parity /opt/parity/release
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
WORKDIR /opt/parity/data
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
# exposing default ports
|
|
|
|
#
|
2020-08-17 12:47:53 +02:00
|
|
|
# secret
|
|
|
|
# store ui rpc ws listener discovery
|
|
|
|
# ↓ ↓ ↓ ↓ ↓ ↓
|
|
|
|
EXPOSE 8082 8083 8180 8545 8546 30303/tcp 30303/udp
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
# switch to non-root user
|
|
|
|
USER 1001
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2018-08-24 05:55:54 +02:00
|
|
|
#if no base path provided, assume it's current workdir
|
|
|
|
CMD ["--base-path","."]
|
|
|
|
ENTRYPOINT ["/opt/parity/release/parity"]
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-12 09:18:42 +02:00
|
|
|
|
|
|
|
|