Skip to content

Commit

Permalink
Run as non-root alinmear#10
Browse files Browse the repository at this point in the history
  • Loading branch information
TBK committed Mar 29, 2019
1 parent 93c9c55 commit 757f4c8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone \
&& chmod +x /entrypoint.sh \
&& cd /usr/bin/ \
&& chmod +x conanexiles_controller rconcli steamcmd_setup

&& chmod +x conanexiles_controller rconcli steamcmd_setup \
# Create steam user and group
&& adduser --group --no-create-home --gecos "" steam \
# Ensure steam user got permission
&& mkdir /conanexiles /steamcmd /wine \
&& chown steam /conanexiles /steamcmd /wine

USER steam

EXPOSE 7777/udp 27015/udp 27016/udp 37015/udp 37016/udp

VOLUME ["/conanexiles"]
Expand Down

0 comments on commit 757f4c8

Please sign in to comment.