forked from InjectiveLabs/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 757 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 757 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
FROM golang:1.22.4-bookworm AS build-env
# Installer les dépendances pour la construction
RUN apt-get update && apt-get install -y build-essential
# Configurer le répertoire de travail pour la construction
WORKDIR /go/src/github.com/Helios-Chain-Labs/ethermint
# Copier les fichiers sources
COPY . .
# Construire le binaire
RUN make build
# Image finale
FROM debian:bookworm-slim AS stage-1
# Installer les certificats et jq
RUN apt-get update && apt-get install -y ca-certificates jq
# Configurer le répertoire de travail
WORKDIR /
# Copier le binaire depuis l'étape de construction
COPY --from=build-env /go/src/github.com/Helios-Chain-Labs/ethermint/build/ethermintd /usr/bin/ethermintd
# Exécuter ethermintd par défaut
CMD ["ethermintd"]