Add generic source engine Dockerfile
This commit is contained in:
parent
6a4392992f
commit
b95b8af243
22
Dockerfile
Normal file
22
Dockerfile
Normal 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"]
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
# 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
16
entrypoint.sh
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user