Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: Add missing Core dependencies in Dockefile #2671

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion services/horizon/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,22 @@ RUN go mod download
COPY . ./
RUN go install github.com/stellar/go/services/horizon

FROM ubuntu:16.04
FROM ubuntu:18.04

ENV STELLAR_CORE_VERSION 13.0.0-1220-9ed3da29
ENV STELLAR_CORE_BINARY_PATH /usr/local/bin/stellar-core

# ca-certificates are required to make tls connections
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates wget


RUN apt-get install -y --no-install-recommends libpqxx-4.0v5 curl
RUN wget -O stellar-core.deb https://s3.amazonaws.com/stellar.org/releases/stellar-core/stellar-core-${STELLAR_CORE_VERSION}_amd64.deb
RUN dpkg -i stellar-core.deb
RUN rm stellar-core.deb

RUN apt-get clean

COPY --from=builder /go/bin/horizon ./

ENTRYPOINT ["./horizon"]