diff --git a/Dockerfile b/Dockerfile index 3cd8bca..d598782 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM docker.zom.bi/dockerfiles/steam:latest + RUN dpkg --add-architecture i386 RUN apt-get update RUN apt-get install -y libcurl4-gnutls-dev:i386 diff --git a/docker-compose.yml b/docker-compose.yml index 42a1b5c..8d9b1c2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,16 +5,17 @@ services: build: . stdin_open: true tty: true - volumes: + environment: + - "CLUSTER_TOKEN=pds-g^KU_W-8duuIH^mHR5MxsqERUXwCO6RsRx0CBPADHhtk1mem6U43jTGn8=" ports: - 11000:11000 - 11000:11000/udp - 27018:27018 - 27018:27018/udp - 8768 - volumes: - - /data/steam-games/:/home/steam/games/:rw - - world:/home/steam/.klei/DoNotStarveTogether/Zom.bi/save + #volumes: + #- /data/steam-games/:/home/steam/games/:rw + #- world:/home/steam/.klei/DoNotStarveTogether/Zom.bi/save volumes: world: diff --git a/entrypoint.sh b/entrypoint.sh index 15c0c00..82fe64a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,6 +27,12 @@ else echo "Skipped game installation." fi +if [[ ! -f ${dontstarve_dir}/${cluster_name}/cluster_token.txt ]] +then + echo "${CLUSTER_TOKEN}" > ${dontstarve_dir}/${cluster_name}/cluster_token.txt +fi + + # run the next commands from the installdir cd $installdir/bin