openethereum/scripts/docker/centos/Dockerfile

24 lines
609 B
Docker
Raw Permalink Normal View History

FROM centos:latest
2020-09-22 14:53:52 +02:00
RUN mkdir -p /opt/openethereum/data && \
chmod g+rwX /opt/openethereum/data && \
mkdir -p /opt/openethereum/release
2020-09-22 14:53:52 +02:00
COPY openethereum/openethereum /opt/openethereum/release
2020-09-22 14:53:52 +02:00
WORKDIR /opt/openethereum/data
# 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
# switch to non-root user
USER 1001
#if no base path provided, assume it's current workdir
CMD ["--base-path","."]
2020-09-22 14:53:52 +02:00
ENTRYPOINT ["/opt/openethereum/release/openethereum"]