LaoArchAngel icon

ark.dockerfile

LaoArchAngel | PRO | 06/16/19 05:36:08 AM UTC | 0 ⭐ | 877 👁️ | Never ⏰ | []
Bash |

1.7 KB

|

None

|

0 👍

/

0 👎

FROM cm2network/steamcmd
 
# Var for first config
# Server Name
ENV SESSIONNAME "Nexverse Ark - Island"
# Map name
ENV SERVERMAP "TheIsland"
# Server password
ENV SERVERPASSWORD ""
# Admin password
ENV ADMINPASSWORD "LaoGrantsAccess"
# Nb Players
ENV NBPLAYERS 70
# Ark Install Path
ENV ARKDIR /home/steam/ark
# Ark Steam App Id
ENV ARKAPPID 376030
# If the server is updating when start with docker start
ENV UPDATEONSTART 1
# if the server is backup when start with docker start
ENV BACKUPONSTART 1
#  Tag on github for ark server tools
ENV GIT_TAG v1.6.46
# Server PORT (you can't remap with docker, it doesn't work)
ENV SERVERPORT 27015
# Steam port (you can't remap with docker, it doesn't work)
ENV STEAMPORT 7777
# if the server should backup after stopping
ENV BACKUPONSTOP 0
# If the server warn the players before stopping
ENV WARNONSTOP 1
# UID of the user steam
ENV UID 1000
# GID of the user steam
ENV GID 1000
 
#RUN echo "fs.file-max=100000" >> /etc/sysctl.conf
#RUN sysctl -p /etc/sysctl.conf
#RUN echo "*               soft    nofile          1000000" >> /etc/security/limits.conf
#RUN echo "*               hard    nofile          1000000" >> /etc/security/limits.conf
#RUN echo "session required pam_limits.so" >> /etc/pam.d/common-session
 
RUN set -x \
    && ${STEAMCMDDIR}/steamcmd.sh \
            +login anonymous \
            +force_install_dir ${ARKDIR} \
            +app_update ${ARKAPPID} validate \
            +quit
 
WORKDIR ${ARKDIR}
 
VOLUME ${ARKDIR}
 
COPY server_start.sh .
 
RUN chmod +x server_start.sh
 
COPY GameUserSettings.ini ${ARKDIR}/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
 
EXPOSE ${STEAMPORT} ${SERVERPORT}
 
EXPOSE ${STEAMPORT}/udp ${SERVERPORT}/udp
 
ENTRYPOINT ["./server_start.sh"]

Comments