aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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