-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (56 loc) · 1.74 KB
/
Copy pathDockerfile
File metadata and controls
66 lines (56 loc) · 1.74 KB
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
61
62
63
64
65
66
#BUILD THE SERVER IMAGE
FROM --platform=linux/amd64 cm2network/steamcmd:root
# Install dependencies
RUN dpkg --add-architecture i386 && \
apt-get update && apt-get install -y --no-install-recommends \
perl \
perl-modules \
libcompress-raw-zlib-perl \
libcompress-raw-bzip2-perl \
libio-compress-perl \
curl \
lsof \
libc6-i386 \
lib32gcc-s1 \
bzip2 \
gettext-base \
procps \
jq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
LABEL maintainer="support@indifferentbroccoli.com" \
name="indifferentbroccoli/ark-server-docker" \
github="https://github.com/indifferentbroccoli/ark-server-docker" \
dockerhub="https://hub.docker.com/r/indifferentbroccoli/ark-server-docker"
ENV HOME=/home/steam \
PUID=1000 \
PGID=1000 \
SESSION_NAME="ARK Server" \
SERVER_PASSWORD="" \
ADMIN_PASSWORD="adminpass" \
MAX_PLAYERS=10 \
WORLD="TheIsland" \
SERVER_PORT=7777 \
QUERY_PORT=27015 \
RCON_PORT=27020 \
SERVER_PVE=false \
BATTLEEYE=false \
CLUSTER_ID="" \
CLUSTER_DIR_OVERRIDE="" \
MOD_IDS="" \
ADDITIONAL_ARGS="" \
BETA="public" \
UPDATE_ON_START=true \
ARKST_OUTPUT_FORMATTING=true
# Install ark-server-tools
RUN curl -sL https://raw.githubusercontent.com/arkmanager/ark-server-tools/master/netinstall.sh | bash -s steam --install-service
# Create necessary directories
RUN mkdir -p /ark /ark-backups && \
chown -R steam:steam /ark /ark-backups /var/log/arktools
COPY ./scripts /home/steam/scripts/
COPY branding /branding
RUN chmod +x /home/steam/scripts/*.sh
WORKDIR /home/steam
HEALTHCHECK --start-period=5m \
CMD pgrep "ShooterGameServer" > /dev/null || exit 1
ENTRYPOINT ["/home/steam/scripts/init.sh"]