-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (49 loc) · 1.31 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM steamcmd/steamcmd:latest
#sets up and installs a steam dedicated server
MAINTAINER tux-box <nathan.flow@gmail.com>
###From steamcmd/steamcmd container
#ENV HOME=/root #steamCMD env
#ENV USER=root #steamCMD env
### Default container
ENV DATA_DIR="/serverdata"
### Filesystem
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV USER="steam"
ENV DATA_PERM=770
### Networking
ENV PORT=27015
###SteamCMD info
### Creds
ENV USERNAME=""
ENV PASSWRD=""
### SteamCMD configuration
ENV STEAMCMD_DIR="/usr/games"
ENV FORCE_INSTALL_DIR=${DATA_DIR}/serverfiles
ENV APP_UPDATE="template"
ENV WORKSHOP_DOWNLOAD_ITEM="template"
ENV VALIDATE="true"
###For personalization
ENV SERVER_NAME=DockerEpoch
ENV SERVER_PASSWRD=Docker
ENV ADMIN_PASSWRD=EpochDocker
ENV ADMIN_ARRAY={"76561197991069479","Mr.120"}
ENV REDIS_IP=127.0.0.1
###For epoch_linux_startscript.sh
ENV NAME=SC
ENV DELDAYS=7
ENV OTHERPARAMS="-maxMem=2047 -nosound -exthreads=1 -noCB -autoinit -loadMissionToMemory"
ENV MODS=@epoch
ENV SERVERMODS=@epochhive
WORKDIR /
RUN apt-get update && \
apt-get install git nano wget curl -y && \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/* && \
rm -r -f /src && \
git clone https://github.com/tux-box/arma3epoch.git /src && \
chmod -R 770 /src/scripts && \
ulimit -n 2048
#Server Start
ENTRYPOINT ["/src/scripts/processWork.sh"]