Skip to content

Commit

Permalink
modify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
skyargos committed Jan 22, 2025
1 parent 7061bf3 commit 11f9469
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ COPY go.mod go.sum* ./
RUN go mod download

COPY . .
RUN LEDGER_ENABLED=false LINK_STATICALLY=true BUILD_TAGS=muslc make release
RUN LEDGER_ENABLED=false LINK_STATICALLY=true BUILD_TAGS=muslc make install

# Add to a distroless container
FROM gcr.io/distroless/cc:$IMG_TAG
ARG IMG_TAG
COPY --from=shentud-builder /src/app/build/shentud /usr/local/bin/
EXPOSE 26656 26657 1317 9090
COPY --from=shentud-builder /go/bin/shentud /usr/local/bin/EXPOSE 26656 26657 1317 9090

ENTRYPOINT ["shentud", "start"]

0 comments on commit 11f9469

Please sign in to comment.