Skip to content

Commit

Permalink
chore(lint): some lint suggestions for Dockerfile
Browse files Browse the repository at this point in the history
Note that this file is used from the root of the project via `make
localnet-build`, which is why the paths work.
  • Loading branch information
MaxMustermann2 committed Mar 11, 2024
1 parent 73e27d3 commit 2fa89d0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions networks/local/exocore/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.21-alpine AS build
RUN apk add build-base linux-headers git
FROM golang:1.21.0-alpine3.18 AS build
RUN apk add --no-cache build-base=0.5-r3 linux-headers=6.3-r0 git=2.40.1-r0
# Set working directory for the build
WORKDIR /go/work
# Add source files
Expand All @@ -9,16 +9,17 @@ COPY . ./
RUN LEDGER_ENABLED=false make build

#####################################
FROM alpine AS run
RUN apk add bash curl jq
FROM alpine:3.18 AS run
RUN apk add --no-cache bash=5.2.15-r5 curl=8.5.0-r0 jq=1.6-r4
EXPOSE 26656 26657 1317 9090 8545 8546
# TODO: exocore testnet chainid is still under consideration and need to be finalized later
CMD ["start", "--log_format", "plain","--chain-id","exocoretestnet_233-1", "--metrics", "--json-rpc.api", "eth,txpool,personal,net,debug,web3", "--api.enable", "--json-rpc.enable", "true"]
CMD ["start", "--log_format", "plain", "--chain-id", "exocoretestnet_233-1", "--metrics", "--json-rpc.api", "eth,txpool,personal,net,debug,web3", "--api.enable", "--json-rpc.enable", "true", "--minimum-gas-prices", "0.0001aexocore"]
# by default, a SIGKILL is sent after 10 seconds. We need to override this to allow graceful shutdown.
STOPSIGNAL SIGTERM
VOLUME /exocore
WORKDIR /exocore

COPY networks/local/exocore/wrapper.sh /usr/bin/wrapper.sh
COPY ./networks/local/exocore/wrapper.sh /usr/bin/wrapper.sh
COPY --from=build /go/work/build/exocored /exocore

ENTRYPOINT ["/usr/bin/wrapper.sh"]

0 comments on commit 2fa89d0

Please sign in to comment.