Skip to content

Commit

Permalink
simplify paths
Browse files Browse the repository at this point in the history
  • Loading branch information
phyzical committed Jul 27, 2024
1 parent 3d9722b commit 8bc0e96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,16 @@ ENV STEAM_ACCOUNT=""
RUN echo "steam ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/steam \
&& chmod 0440 /etc/sudoers.d/steam

RUN mkdir -p /home/cs2-modded-server
ENV HOME="/home/steam/cs2/"

RUN mkdir -p /home/steam/cs2
RUN mkdir -p $HOME

ENV HOME="/home/cs2-modded-server/"
WORKDIR $HOME

RUN chown -R steam:steam /home/steam/cs2
RUN chown -R steam:steam $HOME

COPY . /home/cs2-modded-server/
COPY . $HOME

USER steam

CMD [ "sudo", "-E", "bash", "/home/cs2-modded-server/install_docker.sh" ]
CMD [ "sudo", "-E", "bash", "$HOME/install_docker.sh" ]
3 changes: 0 additions & 3 deletions install_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ ln -sf /steamcmd/linux32/steamclient.so /home/${user}/.steam/sdk32/
mkdir -p /home/${user}/.steam/sdk64/
ln -sf /steamcmd/linux64/steamclient.so /home/${user}/.steam/sdk64/

echo "Installing mods"
cp -R /home/game/csgo/ /home/${user}/cs2/game/

echo "Merging in custom files"
cp -RT /home/custom_files/ /home/${user}/cs2/game/csgo/

Expand Down

0 comments on commit 8bc0e96

Please sign in to comment.