Skip to content

Commit 894e332

Browse files
fix(Containerfile): missing packages (#3)
1 parent 4389107 commit 894e332

3 files changed

Lines changed: 24 additions & 11 deletions

File tree

Containerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
FROM ubuntu:20.04 as production
22

33
ENV DEBIAN_FRONTEND noninteractive
4-
ENV TZ Europe/Paris
54

65
RUN 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

2023
RUN useradd -m -d /home/container container
2124

22-
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
23-
2425
USER container
2526

2627
ENV HOME /home/container
2728

2829
WORKDIR /home/container
2930

30-
COPY ./entrypoint.sh /entrypoint.sh
31+
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
3132

3233
RUN chmod +x /entrypoint.sh
3334

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Pterodactyl
3+
Copyright (c) 2024 SRCDSLab
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

entrypoint.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
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

517
sleep 1
618

@@ -22,7 +34,7 @@ fi
2234

2335
# Replace Startup Variables
2436
MODIFIED_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
2840
eval ${MODIFIED_STARTUP}

0 commit comments

Comments
 (0)