mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
Dockerfile*: set geth home to /root
This commit is contained in:
parent
20a7ef40ac
commit
2641af840a
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue