Skip to content

Commit

Permalink
build(docker): remove USER directive for 65534 (nobody)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
synackd committed Nov 8, 2024
1 parent 8a72cd5 commit 2bc8bd4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ RUN set -ex \
COPY coredhcp /coredhcp


# nobody 65534:65534
USER 65534:65534

CMD [ "/coredhcp" ]

ENTRYPOINT [ "/sbin/tini", "--" ]
ENTRYPOINT [ "/sbin/tini", "--" ]

0 comments on commit 2bc8bd4

Please sign in to comment.