From 2bc8bd45c8aed213c96a8fce51d8769beddc2624 Mon Sep 17 00:00:00 2001 From: Devon Bautista Date: Fri, 8 Nov 2024 12:20:10 -0700 Subject: [PATCH] build(docker): remove USER directive for 65534 (nobody) Binding to port 67, a privileged port, requires us to be root. There is no way to specify which port to bind to in the CoreDHCP command line (e.g. via a flag) and it must be done in the config. Thus, it is likely safe to assume the default port 67 will be used in CoreDHCP configurations. --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f57ee16..b5ce49e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,6 @@ RUN set -ex \ COPY coredhcp /coredhcp -# nobody 65534:65534 -USER 65534:65534 - CMD [ "/coredhcp" ] -ENTRYPOINT [ "/sbin/tini", "--" ] \ No newline at end of file +ENTRYPOINT [ "/sbin/tini", "--" ]