build: allow ruby in container to listen on privileged ports

This commit is contained in:
Adam Cooke
2021-07-29 15:53:15 +00:00
parent 8e3294ba1a
commit d3bdfbae96
+2
View File
@@ -21,6 +21,8 @@ RUN apt-get update && \
nano \
nodejs
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/ruby
# Setup an application
RUN useradd -r -d /opt/postal -m -s /bin/bash -u 999 postal
USER postal