Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions csgo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ RUN chown steam:steam /usr/local/share/csgo

RUN apt-get -y install net-tools tcpdump sudo
RUN echo 'steam ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers
ADD run_cs.sh /usr/local/bin/run_cs.sh
RUN sudo chmod 777 /usr/local/bin/run_cs.sh

# Add our template files
ADD configs/ /usr/local/share/csgo/
USER steam

# Get steam logs out, probably needs to go in steamcmd container
RUN mkdir -p /home/steam/Steam/logs
RUN ln -sf /dev/stderr /home/steam/Steam/logs/stderr.txt
RUN ln -sf /dev/stderr /home/steam/Steam/logs/stderr.txt

VOLUME /var/lib/csgo
WORKDIR /var/lib/csgo
Expand All @@ -28,5 +30,4 @@ EXPOSE 4379-4380/udp
EXPOSE 27000-27030/udp
EXPOSE 51840/udp

ADD run_cs.sh /usr/local/bin/run_cs.sh
ENTRYPOINT ["/usr/local/bin/run_cs.sh"]