Skip to content

Commit

Permalink
Add stellar-core to stellar/stellar-horizon image (#4019)
Browse files Browse the repository at this point in the history
* Add stellar-core to stellar/stellar-horizon image

Also:
* Add default versions for Horizon and Core
* Use ENTRYPOINT instead of CMD (otherwise `docker run subcommand`
  doesn't result in a horizon subcommand being run)
  • Loading branch information
2opremio authored Oct 25, 2021
1 parent d4324c1 commit 95d3084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions services/horizon/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y wget apt-transport-https gnupg2 && \
wget -qO /etc/apt/trusted.gpg.d/SDF.asc https://apt.stellar.org/SDF.asc && \
echo "deb https://apt.stellar.org focal stable" | tee -a /etc/apt/sources.list.d/SDF.list && \
apt-get update && apt-get install -y stellar-horizon=${VERSION} && \
apt-get update && apt-cache madison stellar-horizon stellar-core && apt-get install -y stellar-horizon=${VERSION} stellar-core && \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/*.log /var/log/*/*.log

EXPOSE 8000
CMD ["/usr/bin/stellar-horizon"]
ENTRYPOINT ["/usr/bin/stellar-horizon"]
2 changes: 1 addition & 1 deletion services/horizon/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16 AS builder
FROM golang:1.17 AS builder

WORKDIR /go/src/github.com/stellar/go
COPY go.mod go.sum ./
Expand Down

0 comments on commit 95d3084

Please sign in to comment.