smaller base image and some extra stuff around it

master
Lennart Weller 2015-09-29 15:05:26 +02:00
parent ae79bf320d
commit d9ac8df3d5
3 changed files with 28 additions and 12 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:14.04
FROM debian:8
MAINTAINER TuRzAm
@ -30,7 +30,7 @@ ENV STEAMPORT 7778
# Install dependencies
RUN apt-get update &&\
apt-get install -y curl lib32gcc1 lsof git
apt-get install -y curl lib32gcc1 lsof git sudo
# Run commands as the steam user
@ -40,6 +40,8 @@ RUN adduser \
--gecos "" \
steam
RUN adduser steam sudo
# Copy & rights to folders
COPY run.sh /home/steam/run.sh
COPY arkmanager-user.cfg /home/steam/arkmanager.cfg
@ -57,14 +59,9 @@ RUN ./install.sh steam
# Define default config file in /ark
COPY arkmanager-system.cfg /etc/arkmanager/arkmanager.cfg
RUN chown steam -R /ark && chmod 755 -R /ark
USER steam
# download steamcmd
RUN mkdir /home/steam/steamcmd &&\
cd /home/steam/steamcmd &&\
@ -74,8 +71,6 @@ RUN mkdir /home/steam/steamcmd &&\
# First run is on anonymous to download the app
RUN /home/steam/steamcmd/steamcmd.sh +login anonymous +quit
EXPOSE ${STEAMPORT} 32330 ${SERVERPORT}
VOLUME /ark

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
ark:
image: turzam/ark
environment:
SESSIONNAME: Ark Docker
SERVERMAP: TheIsland
SERVERPASSWORD:
ADMINPASSWORD: adminpassword
AUTOUPDATE: 60
WARNMINUTE: 30
BACKUPONSTART: 1
UPDATEONSTART: 1
UPGRADEONSTART: 0
volumes:
- /srv/ark:/ark
ports:
- 7778:7778/udp
- 7778:7778
- 27015:27015/udp
- 27015:27015
- 32330:32330

7
run.sh
View File

@ -12,9 +12,10 @@ export TERM=linux
[ ! -d /ark/backup ] && mkdir /ark/backup
echo "Upgrade Ark server tools..."
arkmanager upgrade
if [ $UPGRADEONSTART -eq 1 ]; then
echo "Upgrade Ark server tools..."
arkmanager upgrade
fi
if [ ! -d "/ark/server" ];then
echo "Install ark..."