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 8112e8e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,24 @@ RUN dpkg --add-architecture i386 \
&& apt-get install --no-install-recommends --assume-yes winehq-staging \
&& pip3 install python-valve \
&& apt-get clean \
&& rm -rf winehq.key /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf winehq.key /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone

# 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

COPY . ./

RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime \
&& echo $TIMEZONE > /etc/timezone \
&& chmod +x /entrypoint.sh \
RUN 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 8112e8e

Please sign in to comment.