Compare commits

...

2 Commits

Author SHA1 Message Date
Dane Everitt
4bf5342d37
Merge pull request #35 from parkervcp/python3
Update python3 image
2018-10-29 09:10:55 -07:00
Dane Everitt
f3331cb669 Revert "Merge pull request #34 from pterodactyl/revert-33-python3"
This reverts commit e15a911636.
2018-10-29 10:01:57 -04:00
2 changed files with 35 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java (glibc support)
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM python:3-alpine
LABEL author="Michael Parker" maintainer="docker@parkervcp.com"
RUN apk add --no-cache --update \
&& adduser -D -h /home/container container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/ash", "/entrypoint.sh"]

15
entrypoint.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/ash
cd /home/container
# show python version
python --version
# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
echo ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}