-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile.nitro
36 lines (26 loc) · 933 Bytes
/
Dockerfile.nitro
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
ARG CHAIN_DOCKER_VERSION="latest"
####
FROM golang:1.22-bookworm as builder
WORKDIR /work
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get -y install -y git
ARG VERSION=dev
RUN go build -v -ldflags "-X main.version=${VERSION}" ./cmd/fireeth
####
FROM ghcr.io/streamingfast/nitro:${CHAIN_DOCKER_VERSION} as chain
####
FROM ubuntu:22.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get -y install -y \
ca-certificates libssl3 \
curl jq && \
rm -rf /var/cache/apt /var/lib/apt/lists/*
COPY --from=builder /work/fireeth /app/fireeth
COPY --from=chain /usr/local/bin/nitro /app/nitro
COPY --from=chain /home/user/target/machines/. /app/machines/
COPY --from=chain /home/user/nitro-legacy/machines/. /app/legacy-machines/
COPY tools/fireeth/motd_node_manager /etc/motd
COPY tools/fireeth/scripts/. /usr/local/bin/