forked from stellar/quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.testing
40 lines (29 loc) · 1023 Bytes
/
Dockerfile.testing
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
FROM stellar/base:latest
MAINTAINER Bartek Nowotarski <[email protected]>
ENV STELLAR_CORE_VERSION 14.0.0rc1-1300-981385ce
ENV HORIZON_VERSION 1.6.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 useradd --uid 10011001 --home-dir /home/stellar --no-log-init stellar \
&& mkdir -p /home/stellar \
&& chown -R stellar:stellar /home/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" ]