Skip to content

Commit

Permalink
build(docker): update container image
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Apr 18, 2022
1 parent 9928a53 commit 9826168
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions flashbots/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax=docker/dockerfile:1
# syntaxdocker/dockerfile-upstream:master-experimental
FROM golang:1.17-alpine AS builder

RUN apk add --no-cache gcc musl-dev linux-headers git
Expand All @@ -9,14 +9,24 @@ WORKDIR /go-ethereum
RUN go run build/ci.go install ./cmd/geth

# Pull all binaries into a second stage deploy alpine container
FROM alpine:3.14.2
FROM alpine:3.15

RUN apk update && apk upgrade \
&& apk add --no-cache bash jq ca-certificates \
&& rm -rf /var/cache/*/* \
&& echo "" > /root/.ash_history

# change default shell from ash to bash
RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd
ENV LC_ALL=en_US.UTF-8
WORKDIR /root

RUN apk add --no-cache bash ca-certificates
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/

COPY --chmod=0755 ./entrypoint.sh /root/entrypoint.sh
#RUN chmod 755 /root/entrypoint.sh


COPY ./entrypoint.sh /root/entrypoint.sh
RUN chmod 755 /root/entrypoint.sh
ENTRYPOINT ["geth"]

EXPOSE 8545 8546 30303 30303/udp
Expand Down

0 comments on commit 9826168

Please sign in to comment.