You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. FROM debian:8
  2. MAINTAINER TuRzAm
  3. # Var for first config
  4. # Server Name
  5. ENV SESSIONNAME "Ark Docker"
  6. # Map name
  7. ENV SERVERMAP "TheIsland"
  8. # Server password
  9. ENV SERVERPASSWORD ""
  10. # Admin password
  11. ENV ADMINPASSWORD "adminpassword"
  12. # Nb Players
  13. ENV NBPLAYERS 70
  14. # If the server is updating when start with docker start
  15. ENV UPDATEONSTART 1
  16. # if the server is backup when start with docker start
  17. ENV BACKUPONSTART 1
  18. # Nb minute between auto update (warm) (-1 : no auto update)
  19. ENV AUTOUPDATE -1
  20. # Nb minute between auto backup (-1 : no auto backup)
  21. ENV AUTOBACKUP -1
  22. # branch on github for ark server tools
  23. ENV BRANCH master
  24. # Server PORT (you can't remap with docker, it doesn't work)
  25. ENV SERVERPORT 27015
  26. # Steam port (you can't remap with docker, it doesn't work)
  27. ENV STEAMPORT 7778
  28. # Install dependencies
  29. RUN apt-get update &&\
  30. apt-get install -y curl lib32gcc1 lsof git sudo
  31. # Run commands as the steam user
  32. RUN adduser \
  33. --disabled-login \
  34. --shell /bin/bash \
  35. --gecos "" \
  36. steam
  37. RUN adduser steam sudo
  38. # Copy & rights to folders
  39. COPY run.sh /home/steam/run.sh
  40. COPY arkmanager-user.cfg /home/steam/arkmanager.cfg
  41. RUN chmod 777 /home/steam/run.sh
  42. RUN mkdir /ark
  43. # We use the git method, because api github has a limit ;)
  44. RUN git clone -b $BRANCH https://github.com/FezVrasta/ark-server-tools.git /home/steam/ark-server-tools
  45. # Install
  46. WORKDIR /home/steam/ark-server-tools/tools
  47. RUN chmod +x install.sh
  48. RUN ./install.sh steam
  49. # Define default config file in /ark
  50. COPY arkmanager-system.cfg /etc/arkmanager/arkmanager.cfg
  51. RUN chown steam -R /ark && chmod 755 -R /ark
  52. USER steam
  53. # download steamcmd
  54. RUN mkdir /home/steam/steamcmd &&\
  55. cd /home/steam/steamcmd &&\
  56. curl http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar -vxz
  57. # First run is on anonymous to download the app
  58. RUN /home/steam/steamcmd/steamcmd.sh +login anonymous +quit
  59. EXPOSE ${STEAMPORT} 32330 ${SERVERPORT}
  60. VOLUME /ark
  61. # Update game launch the game.
  62. ENTRYPOINT ["/home/steam/run.sh"]