forked from stellar/quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (35 loc) · 1.24 KB
/
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
38
39
40
41
42
43
44
45
46
47
FROM stellar/base:latest
# NOTE: This dockerfile is for the base quickstart image, of which two
# derivatives are created (the testnet and pubnet images). Images built from
# this dockerfile aren't intended to be used directly. See testnet/Dockerfile
# or pubnet/Dockerfile for details on how those images are built.
MAINTAINER Bartek Nowotarski <[email protected]>
ENV STELLAR_CORE_VERSION 0.5.1-341-3c4e3568
ENV HORIZON_VERSION 0.8.0
EXPOSE 5432
EXPOSE 8000
EXPOSE 11625
EXPOSE 11626
ADD dependencies /
RUN ["chmod", "+x", "dependencies"]
RUN /dependencies
ADD install /
RUN ["chmod", "+x", "install"]
RUN /install
RUN ["mkdir", "-p", "/opt/stellar"]
RUN ["touch", "/opt/stellar/.docker-ephemeral"]
RUN [ "adduser", \
"--disabled-password", \
"--gecos", "\"\"", \
"--uid", "10011001", \
"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 testnet /opt/stellar-default/testnet
ADD standalone /opt/stellar-default/standalone
ADD start /
RUN ["chmod", "+x", "start"]
ENTRYPOINT ["/init", "--", "/start" ]