forked from jkread/arkserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·50 lines (37 loc) · 1.44 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
FROM ubuntu:xenial
USER root
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y curl cron bzip2 perl-modules lsof libc6-i386 lib32gcc1 sudo tzdata && \
echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections && \
apt-get install -y ca-certificates steamcmd language-pack-en
RUN ln -s /usr/games/steamcmd /usr/local/bin && \
adduser --gecos "" --disabled-password steam
RUN curl -sL https://git.io/arkmanager | bash -s steam && \
ln -s /usr/local/bin/arkmanager /usr/bin/arkmanager
RUN mkdir /ark && \
mkdir /arkserver
COPY arkmanager/arkmanager.cfg /etc/arkmanager/arkmanager.cfg
COPY arkmanager/instance.cfg /etc/arkmanager/instances/main.cfg
COPY arkserver.sh /arkserver/arkserver.sh
COPY log.sh /arkserver/log.sh
RUN chown -R steam:steam /home/steam /ark /arkserver && chmod -R 777 /root /arkserver
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
RUN steamcmd +quit
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 \
UID=1000 \
GID=1000
VOLUME /ark
CMD [ "/arkserver/arkserver.sh" ]