allow node process to start on low port 80

Fixes #503
This commit is contained in:
David Weber | geOps 2022-03-27 22:09:35 +02:00
parent aba60f0c6a
commit 502d4d1130

View file

@ -33,6 +33,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
libegl1 \
xvfb \
xauth \
libcap2-bin \
&& apt-get -y --purge autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
@ -46,6 +47,9 @@ ENV CHOKIDAR_INTERVAL=500
VOLUME /data
WORKDIR /data
# allow node to listen on low ports
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
EXPOSE 80
USER node:node