File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,12 @@ COPY go.mod go.sum* ./
18
18
RUN go mod download
19
19
20
20
COPY . .
21
- RUN LEDGER_ENABLED=false LINK_STATICALLY=true BUILD_TAGS=muslc make build
22
- RUN echo "Ensuring binary is statically linked ..." \
23
- && file /src/app/build/gaiad | grep "statically linked" \
21
+ RUN LEDGER_ENABLED=false LINK_STATICALLY=true BUILD_TAGS=muslc make release
24
22
25
23
# Add to a distroless container
26
- FROM alpine:$IMG_TAG
27
- RUN apk add --no-cache build-base jq
28
- RUN addgroup -g 1025 nonroot
29
- RUN adduser -D nonroot -u 1025 -G nonroot
24
+ FROM gcr.io/distroless/cc:$IMG_TAG
30
25
ARG IMG_TAG
31
26
COPY --from=shentud-builder /go/bin/shentud /usr/local/bin/
32
27
EXPOSE 26656 26657 1317 9090
33
- USER nonroot
34
28
35
29
ENTRYPOINT ["shentud" , "start" ]
Original file line number Diff line number Diff line change @@ -86,9 +86,7 @@ update-cli-docs: install
86
86
@perl -pi -e " s|$$ HOME|~|" docs/** /* .md
87
87
88
88
release : go.sum
89
- GOOS=linux go build $(BUILD_FLAGS ) -o build/shentud ./app/shentud
90
- GOOS=windows go build $(BUILD_FLAGS ) -o build/shentud.exe ./app/shentud
91
- GOOS=darwin go build $(BUILD_FLAGS ) -o build/shentud-macos ./app/shentud
89
+ GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS ) -o build/shentud ./app/shentud
92
90
93
91
build : go.sum
94
92
ifeq ($(OS ) ,Windows_NT)
98
96
endif
99
97
100
98
build-linux : go.sum
101
- LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE ) build
99
+ CGO_ENABLED=1 LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE ) build
102
100
103
101
# ######### Tools ##########
104
102
@@ -206,7 +204,7 @@ start-localnet-ci:
206
204
# include simulations
207
205
include sims.mk
208
206
209
- .PHONY : all build-linux install release release32 \
207
+ .PHONY : all build-linux install release build \
210
208
fix lint test cov coverage coverage.out image image.update \
211
209
build-docker-shentunode localnet-start localnet-stop \
212
210
docker-build-debug docker-build-hermes \
You can’t perform that action at this time.
0 commit comments