File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM ubuntu:20.04 as production
22
33ENV DEBIAN_FRONTEND noninteractive
4- ENV TZ Europe/Paris
54
65RUN dpkg --add-architecture i386 \
76 && apt-get update -q \
8- && apt-get upgrade -yq \
9- && apt-get install -y \
7+ && apt-get install -yq --no-install-recommends \
8+ ca-certificates \
109 clang \
10+ curl \
1111 g++-multilib \
12+ iproute2 \
1213 lib32stdc++-7-dev \
1314 lib32z1-dev \
1415 libc6-dev-i386 \
1516 linux-libc-dev:i386 \
1617 libncurses5:i386 \
17- curl \
18- ca-certificates
18+ tzdata \
19+ && update-ca-certificates \
20+ && apt-get clean \
21+ && rm -rf /var/lib/apt/lists/* /var/log/*
1922
2023RUN useradd -m -d /home/container container
2124
22- RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
23-
2425USER container
2526
2627ENV HOME /home/container
2728
2829WORKDIR /home/container
2930
30- COPY ./entrypoint.sh /entrypoint.sh
31+ COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
3132
3233RUN chmod +x /entrypoint.sh
3334
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2017 Pterodactyl
3+ Copyright (c) 2024 SRCDSLab
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # #
3+ #
4+ # Variables
5+ # TZ - Setup local timezone
6+ # GAME_PATH - Root game path
7+ #
8+ # #
29
3- cd /home/container
10+ if [ -z ${GAME_PATH} ];
11+ then
12+ export GAME_PATH=/home/container;
13+ fi
14+
15+ cd " $GAME_PATH "
416
517sleep 1
618
2234
2335# Replace Startup Variables
2436MODIFIED_STARTUP=` eval echo $( echo ${STARTUP} | sed -e ' s/{{/${/g' -e ' s/}}/}/g' ) `
25- echo " :/home/container $ ${MODIFIED_STARTUP} "
37+ echo " :$GAME_PATH $ ${MODIFIED_STARTUP} "
2638
2739# Run the Server
2840eval ${MODIFIED_STARTUP}
You can’t perform that action at this time.
0 commit comments