diff options
| -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 | ||
