File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,11 @@ FROM alpine:latest
12
12
RUN apk add --no-cache ca-certificates
13
13
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
14
14
15
+ RUN addgroup -g 1000 geth && \
16
+ adduser -h /root -D -u 1000 -G geth geth && \
17
+ chown geth:geth /root
18
+
19
+ USER geth
20
+
15
21
EXPOSE 8545 8546 30303 30303/udp 30304/udp
16
22
ENTRYPOINT ["geth" ]
Original file line number Diff line number Diff line change @@ -12,4 +12,10 @@ FROM alpine:latest
12
12
RUN apk add --no-cache ca-certificates
13
13
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/
14
14
15
+ RUN addgroup -g 1000 geth && \
16
+ adduser -h /root -D -u 1000 -G geth geth \
17
+ chown geth:geth /root
18
+
19
+ USER geth
20
+
15
21
EXPOSE 8545 8546 30303 30303/udp 30304/udp
You can’t perform that action at this time.
0 commit comments