This repository was archived by the owner on May 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (35 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
46 lines (35 loc) · 1.27 KB
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
FROM stellar/base:latest
# postgresql
EXPOSE 5432
# horizon
EXPOSE 8000
# core p2p
EXPOSE 11625
# core http / admin
EXPOSE 11626
ADD dependencies /
RUN ["chmod", "+x", "dependencies"]
RUN /dependencies
# copy the binaries from the local path
COPY ./stellar-core /usr/local/bin/stellar-core
COPY ./horizon /usr/local/bin/horizon
RUN ["apt-get", "install", "gettext-base"]
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" ]
# CUSTOM section
# install libc6, required for core (compiled on Ubuntu 18.04 with glibc6)
RUN echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
RUN apt-get update -qq && apt-get -t sid install -qq rsync libc6