forked from stellar/quickstart
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (27 loc) · 877 Bytes
/
Dockerfile
File metadata and controls
38 lines (27 loc) · 877 Bytes
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
38
FROM ubuntu:20.04
ENV STELLAR_CORE_VERSION 19.9.0-1254.064a2787a.focal
ENV HORIZON_VERSION 2.30.0-436
EXPOSE 5432
EXPOSE 8000
EXPOSE 31402
ADD dependencies /
RUN ["chmod", "+x", "dependencies"]
RUN /dependencies
ADD install /
RUN ["chmod", "+x", "install"]
RUN /install
RUN ["mkdir", "-p", "/opt/stellar"]
RUN ["ln", "-s", "/opt/stellar", "/stellar"]
RUN ["ln", "-s", "/opt/stellar/core/etc/stellar-core.cfg", "/stellar-core.cfg"]
RUN ["ln", "-s", "/opt/stellar/horizon/etc/horizon.env", "/horizon.env"]
ADD common /opt/stellar-default/common
ADD pubnet /opt/stellar-default/pubnet
ADD mirror_full_archive.sh /
ADD horizon_complete_reingest.sh /
RUN ["chmod", "+x", "/mirror_full_archive.sh"]
RUN ["chmod", "+x", "/horizon_complete_reingest.sh"]
ADD migrations /migrations
RUN chmod +x /migrations/*.sh
ADD start /
RUN ["chmod", "+x", "start"]
ENTRYPOINT ["/start"]