-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
54 lines (44 loc) · 2.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# ----------------------------------
# Pterodactyl Panel Dockerfile
# Environment: Source Engine
# ----------------------------------
FROM debian:bullseye-slim
LABEL author="Pterodactyl Software - edited by sapphonie" maintainer="[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV TERM screen
# Upgrade our base system first
RUN tput setaf 2; echo "apt-get Upgrading base image..."; tput sgr0; \
apt-get update \
&& apt-get upgrade -y --no-install-recommends
# from postgressql - set up en_US.UTF8 locale so srcds doesn't whine
# https://github.com/docker-library/postgres/blob/69bc540ecfffecce72d49fa7e4a46680350037f9/9.6/Dockerfile#L21-L24
RUN tput setaf 2; echo "Setting en_US.UTF8 locale..."; tput sgr0; \
apt-get update \
&& apt-get install -y locales \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
# install deps
RUN tput setaf 2; echo "Installing dependencies..."; tput sgr0; \
dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
# needed for ip route stuff in entrypoint.sh
net-tools iproute2 \
# TF2 Wiki says these are required
lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386 \
# needed for some sourcemod extensions
curl libcurl4:i386 \
# helpful tools
python valgrind gdb \
# needed for steamcmd
ca-certificates
# set up our container user
RUN tput setaf 2; echo "Creating container user..."; tput sgr0; \
useradd -U -m -d /home/container -s /bin/bash container
RUN tput setaf 2; echo "Done!"; tput sgr0;
USER container:container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]