Advertisement
LaoArchAngel

ark.dockerfile

Jun 16th, 2019
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. FROM cm2network/steamcmd
  2.  
  3. # Var for first config
  4. # Server Name
  5. ENV SESSIONNAME "Nexverse Ark - Island"
  6. # Map name
  7. ENV SERVERMAP "TheIsland"
  8. # Server password
  9. ENV SERVERPASSWORD ""
  10. # Admin password
  11. ENV ADMINPASSWORD "LaoGrantsAccess"
  12. # Nb Players
  13. ENV NBPLAYERS 70
  14. # Ark Install Path
  15. ENV ARKDIR /home/steam/ark
  16. # Ark Steam App Id
  17. ENV ARKAPPID 376030
  18. # If the server is updating when start with docker start
  19. ENV UPDATEONSTART 1
  20. # if the server is backup when start with docker start
  21. ENV BACKUPONSTART 1
  22. #  Tag on github for ark server tools
  23. ENV GIT_TAG v1.6.46
  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 7777
  28. # if the server should backup after stopping
  29. ENV BACKUPONSTOP 0
  30. # If the server warn the players before stopping
  31. ENV WARNONSTOP 1
  32. # UID of the user steam
  33. ENV UID 1000
  34. # GID of the user steam
  35. ENV GID 1000
  36.  
  37. #RUN echo "fs.file-max=100000" >> /etc/sysctl.conf
  38. #RUN sysctl -p /etc/sysctl.conf
  39. #RUN echo "*               soft    nofile          1000000" >> /etc/security/limits.conf
  40. #RUN echo "*               hard    nofile          1000000" >> /etc/security/limits.conf
  41. #RUN echo "session required pam_limits.so" >> /etc/pam.d/common-session
  42.  
  43. RUN set -x \
  44.     && ${STEAMCMDDIR}/steamcmd.sh \
  45.             +login anonymous \
  46.             +force_install_dir ${ARKDIR} \
  47.             +app_update ${ARKAPPID} validate \
  48.             +quit
  49.  
  50. WORKDIR ${ARKDIR}
  51.  
  52. VOLUME ${ARKDIR}
  53.  
  54. COPY server_start.sh .
  55.  
  56. RUN chmod +x server_start.sh
  57.  
  58. COPY GameUserSettings.ini ${ARKDIR}/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
  59.  
  60. EXPOSE ${STEAMPORT} ${SERVERPORT}
  61.  
  62. EXPOSE ${STEAMPORT}/udp ${SERVERPORT}/udp
  63.  
  64. ENTRYPOINT ["./server_start.sh"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement