diff --git a/Dockerfile b/Dockerfile index a78a45bd4..082c58dc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /go/src/github.com/ExocoreNetwork/exocore COPY go.mod go.sum ./ -RUN apk add --no-cache ca-certificates=20241121-r1 build-base=0.5-r3 git=2.43.5-r0 linux-headers=6.5-r0 +RUN apk add --no-cache ca-certificates build-base git linux-headers RUN --mount=type=bind,target=. --mount=type=secret,id=GITHUB_TOKEN \ git config --global url."https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/".insteadOf "https://github.com/"; \ @@ -23,7 +23,15 @@ WORKDIR /root COPY --from=build-env /go/src/github.com/ExocoreNetwork/exocore/build/exocored /usr/bin/exocored COPY --from=build-env /go/bin/toml-cli /usr/bin/toml-cli -RUN apk add --no-cache ca-certificates=20241121-r1 libstdc++=13.2.1_git20231014-r0 jq=1.7.1-r0 curl=8.11.1-r0 bash=5.2.21-r0 vim=9.0.2127-r0 lz4=1.9.4-r5 rclone=1.65.0-r3 \ +RUN apk add --no-cache \ + ca-certificates \ + libstdc++ \ + jq \ + curl \ + bash \ + vim \ + lz4 \ + rclone \ && addgroup -g 1000 exocore \ && adduser -S -h /home/exocore -D exocore -u 1000 -G exocore diff --git a/networks/local/exocore/Dockerfile b/networks/local/exocore/Dockerfile index dad5862d2..d541a57e9 100644 --- a/networks/local/exocore/Dockerfile +++ b/networks/local/exocore/Dockerfile @@ -1,5 +1,5 @@ FROM golang:1.21.12-alpine3.19 AS build -RUN apk add --no-cache build-base=0.5-r3 git=2.43.5-r0 linux-headers=6.5-r0 +RUN apk add --no-cache build-base git linux-headers # Set working directory for the build WORKDIR /go/work # Add source files @@ -10,7 +10,11 @@ RUN LEDGER_ENABLED=false make build ##################################### FROM alpine:3.19 AS run -RUN apk add --no-cache libstdc++=13.2.1_git20231014-r0 bash=5.2.21-r0 curl=8.11.1-r0 jq=1.7.1-r0 \ +RUN apk add --no-cache \ + libstdc++ \ + bash \ + curl \ + jq \ && addgroup -g 1000 exocore \ && adduser -S -h /home/exocore -D exocore -u 1000 -G exocore EXPOSE 26656 26657 1317 9090 8545 8546