Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified outdated package, url and field #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM ubuntu:18.04
MAINTAINER Max Gonzih <gonzih at gmail dot com>
LABEL Name="Max Gonzih"
LABEL Mail="[email protected]"

ENV USER csgo
ENV HOME /home/$USER
ENV SERVER $HOME/hlserver

RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install lib32gcc1 curl net-tools lib32stdc++6 locales \
&& apt-get -y install lib32gcc1 curl net-tools locales \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 \
&& dpkg-reconfigure --frontend=noninteractive locales \
Expand All @@ -30,11 +31,11 @@ ADD ./csgo.sh $SERVER/csgo.sh
RUN chown -R $USER:$USER $SERVER

USER $USER
RUN curl http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz \
RUN curl https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar -C $SERVER -xvz \
&& $SERVER/update.sh

EXPOSE 27015/udp

WORKDIR /home/$USER/hlserver
WORKDIR ${SERVER}
ENTRYPOINT ["./csgo.sh"]
CMD ["-console" "-usercon" "+game_type" "0" "+game_mode" "1" "+mapgroup" "mg_active" "+map" "de_cache"]