diff options
| author | diogo464 <[email protected]> | 2025-06-27 10:28:01 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-06-27 10:28:01 +0100 |
| commit | 2fdb9e3c8fcb0bb6832b735ed6963d5e8f980d27 (patch) | |
| tree | 5af18ac4d8e3f1bec6939b4457424424e8a82bc9 | |
| parent | 1b6f0403df26aad813668075da01c87c08724973 (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-- | Containerfile | 8 |
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 |
| 31 | RUN chmod +x /usr/local/bin/oar-p2p | 31 | RUN chmod +x /usr/local/bin/oar-p2p |
| 32 | 32 | ||
| 33 | # Run as non-root user | 33 | ENTRYPOINT ["/usr/local/bin/oar-p2p"] |
| 34 | RUN addgroup -g 1000 appgroup && \ | ||
| 35 | adduser -D -s /bin/sh -u 1000 -G appgroup appuser | ||
| 36 | |||
| 37 | USER appuser | ||
| 38 | |||
| 39 | ENTRYPOINT ["/usr/local/bin/oar-p2p"] \ No newline at end of file | ||
