Skip to content

Commit

Permalink
Allow running on privileged ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Scecina committed Sep 23, 2024
1 parent c7790da commit d0b9661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ RUN chmod +x ./wait-for.sh
RUN ln -s /opal/wait-for.sh /usr/wait-for.sh

# netcat (nc) is used by the wait-for.sh script
RUN apt-get update && apt-get install -y netcat-traditional jq && apt-get clean
RUN apt-get update && apt-get install -y netcat-traditional jq libcap2-bin && apt-get clean

# copy startup script (create link at old path to maintain backward compatibility)
COPY ./scripts/start.sh .
RUN chmod +x ./start.sh
RUN ln -s /opal/start.sh /start.sh
# copy gunicorn_config
COPY ./scripts/gunicorn_conf.py .
# setcap CAP_NET_BIND_SERVICE
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/python3.10
# copy app code

COPY ./README.md .
Expand Down

0 comments on commit d0b9661

Please sign in to comment.