forked from Stride-Labs/stride
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.gaia
36 lines (26 loc) · 910 Bytes
/
Dockerfile.gaia
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
FROM golang:1.17-alpine3.15 AS gaiad-builder
RUN apk add --update git
# --branch v7.0.0
WORKDIR /src/app/
RUN git clone https://github.com/Stride-Labs/gaia --branch v7.0.2
WORKDIR gaia
# COPY go.mod go.sum* ./
# RUN go mod download
# COPY --from=gaiad-builder . .
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3
RUN apk add --no-cache $PACKAGES
RUN CGO_ENABLED=0 make install
# Add to a distroless container
FROM alpine:3.15
COPY --from=gaiad-builder /go/bin/gaiad /usr/local/bin/
RUN adduser -S -h /gaia -D gaia -u 1000
USER gaia
RUN gaiad init test --home /gaia/.gaiad
# set minimum-gas-prices in app.toml for gaia
EXPOSE 26656 26657 1317 9090
CMD ["gaiad", "start", "--home", "/gaia/.gaiad"]]
# # Add to a distroless container
# FROM gcr.io/distroless/cc:$IMG_TAG
# ARG IMG_TAG
# COPY --from=gaiad-builder /go/bin/gaiad /usr/local/bin/
# ENTRYPOINT ["gaiad", "start"]