diff --git a/Dockerfile b/Dockerfile index 59a4f6493b..54fb12944a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,8 @@ RUN apk add --no-cache ca-certificates COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ RUN addgroup -g 1000 geth && \ - adduser -D -u 1000 -G geth geth + adduser -D -u 1000 -G geth geth && \ + chown geth:geth /root USER geth diff --git a/Dockerfile.alltools b/Dockerfile.alltools index bc245379b5..c9218a2b0e 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -13,7 +13,8 @@ RUN apk add --no-cache ca-certificates COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ RUN addgroup -g 1000 geth && \ - adduser -D -u 1000 -G geth geth + adduser -D -u 1000 -G geth geth \ + chown geth:geth /root USER geth