-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 788 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
ARG DISTRO
FROM ubuntu:${DISTRO}
# We need to repeat ARG here to make it available inside build context
# See https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG DISTRO
MAINTAINER Siddharth Suresh <siddharth@stellar.org>
EXPOSE 11625
EXPOSE 11626
# QUIC port for Rust overlay (peer_port + 1000, UDP)
EXPOSE 12625/udp
VOLUME /data
VOLUME /postgresql-unix-sockets
ARG STELLAR_CORE_VERSION
ADD setup /
RUN /setup
#install stellar-core
RUN wget -qO - https://apt.stellar.org/SDF.asc | apt-key add -
RUN echo "deb https://apt.stellar.org ${DISTRO} unstable" | tee -a /etc/apt/sources.list.d/SDF-unstable.list
RUN apt-get update && apt-get install -y stellar-core=${STELLAR_CORE_VERSION}
WORKDIR "/etc/stellar"
ENTRYPOINT ["/usr/bin/stellar-core"]