Dockerfile*: set geth home to /root

This commit is contained in:
Federico Gimenez 2018-02-09 22:14:02 +01:00
parent 20a7ef40ac
commit 2641af840a
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ RUN apk add --no-cache ca-certificates
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/
RUN addgroup -g 1000 geth && \ RUN addgroup -g 1000 geth && \
adduser -D -u 1000 -G geth geth && \ adduser -h /root -D -u 1000 -G geth geth && \
chown geth:geth /root chown geth:geth /root
USER geth USER geth

View file

@ -13,7 +13,7 @@ RUN apk add --no-cache ca-certificates
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/
RUN addgroup -g 1000 geth && \ RUN addgroup -g 1000 geth && \
adduser -D -u 1000 -G geth geth \ adduser -h /root -D -u 1000 -G geth geth \
chown geth:geth /root chown geth:geth /root
USER geth USER geth