dockerfiles/opensnitch/Dockerfile
Jess Frazelle 2381609397
user opensnitch
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-11-08 16:04:13 -05:00

25 lines
547 B
Docker

# Usage:
# docker run -d \
# -v /etc/localtime:/etc/localtime:ro \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e "DISPLAY=unix${DISPLAY}" \
# -v /usr/share/X11:/usr/share/X11:ro \
# --net host \
# --cap-add NET_ADMIN \
# --name opensnitch \
# r.j3ss.co/opensnitch
#
FROM r.j3ss.co/opensnitchd:latest
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& mkdir -p $HOME/.cache/dconf \
&& mkdir -p $HOME/.dbus \
&& chown -R user:user $HOME
WORKDIR $HOME
USER user
ENTRYPOINT ["/usr/local/bin/opensnitch-qt", "--debug"]