-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 795 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
29
30
31
32
33
FROM golang:1.26-bookworm AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
ARG VERSION="dev"
RUN apt-get update && apt-get install -y git
RUN go build -v -ldflags "-X main.version=${VERSION}" ./cmd/fireeth
FROM ubuntu:24.04
ARG TARGETPLATFORM
# gettext-base is needed for envsubst
RUN apt-get update && apt-get -y install ca-certificates htop iotop sysstat strace lsof curl jq tzdata file gettext-base
WORKDIR /app
COPY --from=build /app/fireeth /app/fireeth
ENV PATH="$PATH:/app"
COPY docker/motd /etc/motd
COPY docker/motd_reader /etc/motd_reader
COPY docker/99-firehose-ethereum.sh /etc/profile.d/
COPY docker/scripts/ /app/
RUN chmod +x /app/reader-*
RUN echo ". /etc/profile.d/99-firehose-ethereum.sh" > /root/.bash_aliases
ENTRYPOINT [ "/app/fireeth" ]