Set the path to include /files and stop adding the server script so we can develop it without building.

This commit is contained in:
Daniel Ceregatti 2022-07-10 11:21:07 -07:00
parent 8ba598b549
commit 296fc55765

View file

@ -42,8 +42,9 @@ ENV LC_ALL en_US.UTF-8
# Add py3rcon
RUN cd /usr/local && git clone https://github.com/indepth666/py3rcon.git
# steamcmd ends up in /usr/games
ENV PATH /usr/games:/usr/local/py3rcon:${PATH}
# Steamcmd needs its path added, as it ends up in /usr/games.
# Our server script is bind mounted in /files in docker-compose.
ENV PATH /usr/games:/files:${PATH}
# Setup a non-privileged user
RUN groupadd user && \
@ -51,9 +52,6 @@ RUN groupadd user && \
mkdir /home/user && \
chown user:user /home/user
# Add the dayzserver to a directory in PATH. Might as well be /usr/games!
#ADD files/dayzserver /usr/games
# Use our non-privileged user
USER user