Add net_bind_service capability for python executable

Signed-off-by: fastlorenzo <git@bernardi.be>
main
fastlorenzo 2 years ago
parent 0bfe3f92a6
commit 0209825277
No known key found for this signature in database
GPG Key ID: 8AAAB58530EC2A31

@ -80,7 +80,8 @@ FROM system
COPY --from=build /app/venv/ /app/venv/
COPY --chown=root:root --from=build /app/snuffleupagus.so /usr/lib/php81/modules/
RUN setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn
RUN setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn \
; setcap 'cap_net_bind_service=+ep' /usr/bin/python3.10
ENV VIRTUAL_ENV=/app/venv
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"

Loading…
Cancel
Save