Dockerfile*: change ownership of /root to prevent puppeth breakage

This commit is contained in:
Federico Gimenez 2018-02-09 21:57:53 +01:00
parent 2d53be8387
commit 20a7ef40ac
2 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,8 @@ 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 -D -u 1000 -G geth geth && \
chown geth:geth /root
USER geth USER geth

View file

@ -13,7 +13,8 @@ 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 -D -u 1000 -G geth geth \
chown geth:geth /root
USER geth USER geth