|
1 | | -# # LinuxGSM American Truck Simulator Dockerfile # # |
2 | | -https://github.com/GameServerManagers/docker-gameserver # FROM |
3 | | -ghcr.io/gameservermanagers/linuxgsm:ubuntu-24.04 LABEL maintainer="LinuxGSM |
4 | | - |
5 | | - >" ARG SHORTNAME=ats ENV GAMESERVER=atsserver WORKDIR |
6 | | - /app ## Auto install game server requirements RUN depshortname=$(curl |
7 | | - --connect-timeout 10 -s |
8 | | - https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/ubuntu-24.04.csv |
9 | | - |awk -v shortname="ats" -F, '$1==shortname {$1=""; print $0}') \ |
10 | | - && if [ -n "${depshortname}" ]; then \ echo "**** Install ${depshortname} |
11 | | - ****" \ && apt-get update \ && apt-get install -y ${depshortname} \ && apt-get |
12 | | - -y autoremove \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* |
13 | | - /var/tmp/*; \ fi HEALTHCHECK --interval=1m --timeout=1m --start-period=2m |
14 | | - --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1 RUN date > |
15 | | - /build-time.txt ENTRYPOINT ["/bin/bash", "./entrypoint.sh"] |
16 | | - |
| 1 | +# |
| 2 | +# LinuxGSM American Truck Simulator Dockerfile |
| 3 | +# |
| 4 | +# https://github.com/GameServerManagers/docker-gameserver |
| 5 | +# |
| 6 | + |
| 7 | +FROM ghcr.io/gameservermanagers/linuxgsm:ubuntu-24.04 |
| 8 | +LABEL maintainer="LinuxGSM < [email protected]>" |
| 9 | +ARG SHORTNAME=ats |
| 10 | +ENV GAMESERVER=atsserver |
| 11 | + |
| 12 | +WORKDIR /app |
| 13 | + |
| 14 | +## Auto install game server requirements |
| 15 | +RUN depshortname=$(curl --connect-timeout 10 -s https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/lgsm/data/ubuntu-24.04.csv |awk -v shortname="ats" -F, '$1==shortname {$1=""; print $0}') \ |
| 16 | + && if [ -n "${depshortname}" ]; then \ |
| 17 | + echo "**** Install ${depshortname} ****" \ |
| 18 | + && apt-get update \ |
| 19 | + && apt-get install -y ${depshortname} \ |
| 20 | + && apt-get -y autoremove \ |
| 21 | + && apt-get clean \ |
| 22 | + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \ |
| 23 | + fi |
| 24 | + |
| 25 | +HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1 |
| 26 | + |
| 27 | +RUN date > /build-time.txt |
| 28 | + |
| 29 | +ENTRYPOINT ["/bin/bash", "./entrypoint.sh"] |
0 commit comments