-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
24 lines (17 loc) · 678 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:20.04
ARG PROFILE=release
ARG BINARY=pendulum-collator
ENV DEBIAN_FRONTEND=noninteractive
# install tools and dependencies
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y libssl1.1 ca-certificates curl tini && \
apt-get autoremove -y && apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete
COPY target/${PROFILE}/pendulum-collator /usr/local/bin
# Checks
RUN chmod +x /usr/local/bin/pendulum-collator && \
ldd /usr/local/bin/pendulum-collator && \
/usr/local/bin/pendulum-collator --version
EXPOSE 30333 9933 9944
VOLUME ["/data"]
ENTRYPOINT ["tini", "--", "/usr/local/bin/pendulum-collator"]