Add generic source engine Dockerfile

This commit is contained in:
Dane Everitt 2017-03-18 14:18:09 -04:00
parent 6a4392992f
commit b95b8af243
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 39 additions and 1 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Source Engine
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM ubuntu:16.04
MAINTAINER Pterodactyl Software, <support@pterodactyl.io>
ENV DEBIAN_FRONTEND noninteractive
# Install Dependencies
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y tar curl gcc g++ lib32gcc1 lib32tinfo5 lib32z1 lib32stdc++6 libtinfo5:i386 libncurses5:i386 libcurl3-gnutls:i386 \
&& useradd -m -d /home/container container
USER container
ENV HOME /home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]

View File

@ -1,2 +1,2 @@
# Containers # Containers
Generic docker containers designed to work with Pterodactyl Panel and its daemon. Generic docker containers designed to run source engine games.

16
entrypoint.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
sleep 5
cd /home/container
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
${MODIFIED_STARTUP}
if [ $? -ne 0 ]; then
echo "PTDL_CONTAINER_ERR: There was an error while attempting to run the start command."
exit 1
fi