-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathDockerfile
30 lines (23 loc) · 851 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu
MAINTAINER Mattie
RUN apt-get update
RUN apt-get -y install lib32gcc1 libc6-i386 wget
ENV DATA_DIR="/serverdata"
ENV STEAMCMD_DIR="${DATA_DIR}/steamcmd"
ENV SERVER_DIR="${DATA_DIR}/serverfiles"
ENV GAME_ID="740"
ENV GAME_NAME="csgo"
ENV GAME_PARAMS="+game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2"
ENV GAME_PORT=27015
RUN mkdir $DATA_DIR
RUN mkdir $STEAMCMD_DIR
RUN mkdir $SERVER_DIR
# RUN wget -q -O ${STEAMCMD_DIR}/steamcmd_linux.tar.gz http://media.steampowered.com/client/steamcmd_linux.tar.gz \
# && tar --directory ${STEAMCMD_DIR} -xvzf ${STEAMCMD_DIR}/steamcmd_linux.tar.gz \
# && rm ${STEAMCMD_DIR}/steamcmd_linux.tar.gz \
# && chmod -R 774 $STEAMCMD_DIR $SERVER_DIR
RUN ulimit -n 2048
ADD /scripts/ /opt/scripts/
RUN chmod -R 774 /opt/scripts/
#Server Start
ENTRYPOINT ["/opt/scripts/start-server.sh"]