-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile
38 lines (29 loc) · 810 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
25
26
27
28
29
30
31
32
33
34
35
36
37
# Raptoreum Smartnode April 2021
# Use Ubuntu 20
FROM ubuntu:focal
LABEL maintainer="dk808"
# Install packages
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates \
wget \
curl \
jq \
pwgen \
nano \
unzip \
xz-utils \
procps \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create dir to run datadir to bind for persistent data
RUN mkdir /raptoreum
VOLUME /raptoreum
WORKDIR /raptoreum
COPY ./bootstrap.sh ./rtm-bins.sh ./start.sh /usr/local/bin/
RUN chmod -R 755 /usr/local/bin
RUN ["/bin/bash", "-c", "rtm-bins.sh"]
# Smartnode p2p port
EXPOSE 10226
# Use healthcheck to deal with hanging issues and prevent pose bans
HEALTHCHECK --start-period=20m --interval=30m --retries=3 --timeout=10s \
CMD healthcheck.sh
CMD start.sh