forked from thmhoag/arkserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·37 lines (27 loc) · 1.01 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
FROM thmhoag/steamcmd:latest
USER root
RUN apt-get update && \
apt-get install -y curl cron bzip2 perl-modules lsof libc6-i386 lib32gcc1 sudo
RUN curl -sL "https://raw.githubusercontent.com/FezVrasta/ark-server-tools/v1.6.54/netinstall.sh" | bash -s steam && \
ln -s /usr/local/bin/arkmanager /usr/bin/arkmanager
COPY arkmanager/arkmanager.cfg /etc/arkmanager/arkmanager.cfg
COPY arkmanager/instance.cfg /etc/arkmanager/instances/main.cfg
COPY run.sh /home/steam/run.sh
COPY log.sh /home/steam/log.sh
RUN mkdir /ark && \
chown -R steam:steam /home/steam/ /ark
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers && \
usermod -a -G sudo steam && \
touch /home/steam/.sudo_as_admin_successful
WORKDIR /home/steam
USER steam
ENV am_ark_SessionName="Ark Server" \
am_serverMap="TheIsland" \
am_ark_ServerAdminPassword="k3yb04rdc4t" \
am_ark_MaxPlayers=70 \
am_ark_QueryPort=27015 \
am_ark_Port=7778 \
am_ark_RCONPort=32330 \
am_arkwarnminutes=15
VOLUME /ark
CMD [ "./run.sh" ]