Skip to content

Commit ce2951f

Browse files
committed
fix(docker): use numeric UID:GID in USER to satisfy hadolint DL3066
1 parent 86e076d commit ce2951f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎common/Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ RUN useradd -m -u 1000 -U -s /bin/sh orbinum && \
4242
# Copy binary from builder
4343
COPY --from=builder /orbinum/target/release/orbinum-node /usr/local/bin/orbinum-node
4444

45-
# Set user
46-
USER orbinum
45+
# Set user (numeric UID:GID so the host can resolve it — see useradd -u 1000 -U above)
46+
USER 1000:1000
4747

4848
# Expose ports
4949
# 30333: P2P

0 commit comments

Comments
 (0)