aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-06-27 10:28:01 +0100
committerdiogo464 <[email protected]>2025-06-27 10:28:01 +0100
commit2fdb9e3c8fcb0bb6832b735ed6963d5e8f980d27 (patch)
tree5af18ac4d8e3f1bec6939b4457424424e8a82bc9
parent1b6f0403df26aad813668075da01c87c08724973 (diff)
Remove non-root user from Containerfile
Run as root to allow network operations with ip and tc commands. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
-rw-r--r--Containerfile8
1 files changed, 1 insertions, 7 deletions
diff --git a/Containerfile b/Containerfile
index 326f2a2..896a128 100644
--- a/Containerfile
+++ b/Containerfile
@@ -30,10 +30,4 @@ COPY --from=builder /app/target/release/oar-p2p /usr/local/bin/oar-p2p
30# Set the binary as executable 30# Set the binary as executable
31RUN chmod +x /usr/local/bin/oar-p2p 31RUN chmod +x /usr/local/bin/oar-p2p
32 32
33# Run as non-root user 33ENTRYPOINT ["/usr/local/bin/oar-p2p"]
34RUN addgroup -g 1000 appgroup && \
35 adduser -D -s /bin/sh -u 1000 -G appgroup appuser
36
37USER appuser
38
39ENTRYPOINT ["/usr/local/bin/oar-p2p"] \ No newline at end of file