-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (26 loc) · 994 Bytes
/
Dockerfile
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
ARG COREVERSION="latest"
FROM golang:1.22-alpine as build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
# to get buildinfo in golang
RUN apk add git
ARG VERSION="dev"
RUN go build -v -ldflags "-X main.version=${VERSION}" ./cmd/fireantelope
####
FROM ghcr.io/streamingfast/firehose-core:${COREVERSION} as core
####
FROM alpine:3
ENV PATH "$PATH:/app"
#COPY tools/fireeth/motd_generic /etc/motd
#COPY tools/fireeth/99-fireeth.sh /etc/profile.d/
#RUN echo ". /etc/profile.d/99-fireeth.sh" > /root/.bash_aliases
RUN apk --no-cache add \
ca-certificates htop iotop sysstat \
strace lsof curl jq tzdata bash
RUN mkdir -p /app/ && curl -Lo /app/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v0.4.12/grpc_health_probe-linux-amd64 && chmod +x /app/grpc_health_probe
WORKDIR /app
COPY --from=build /app/fireantelope /app/fireantelope
COPY --from=core /app/firecore /app/firecore
ENTRYPOINT ["/app/fireantelope"]