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 30, 2019
1 parent 93c9c55 commit cc427ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ ENV TIMEZONE=Europe/Vienna \
CONANEXILES_Game_RconPlugin_RconPort=25575 \
CONANEXILES_Game_RconPlugin_RconMaxKarma=60

# Create steam user
RUN useradd -ms /bin/bash steam \
# Ensure steam user got permission
&& mkdir /conanexiles /steamcmd /wine \
&& chown steam /conanexiles /steamcmd /wine

USER steam

RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y ca-certificates crudini python3-pip redis-tools software-properties-common supervisor unzip wget xvfb \
Expand All @@ -29,7 +37,7 @@ RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& chmod +x /entrypoint.sh \
&& cd /usr/bin/ \
&& chmod +x conanexiles_controller rconcli steamcmd_setup

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

VOLUME ["/conanexiles"]
Expand Down

0 comments on commit cc427ba

Please sign in to comment.