basic python 3.6 support
New image for python 3
This commit is contained in:
parent
5285ad483c
commit
f493215bc1
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# ----------------------------------
|
||||
# Pterodactyl Core Dockerfile
|
||||
# Environment: Java (glibc support)
|
||||
# Minimum Panel Version: 0.6.0
|
||||
# ----------------------------------
|
||||
FROM python:3.6-alpine3.7
|
||||
|
||||
MAINTAINER Michael Parker, <docker@parkervcp.com>
|
||||
|
||||
RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite \
|
||||
&& adduser -D -h /home/container container
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
15
entrypoint.sh
Normal file
15
entrypoint.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
cd /home/container
|
||||
|
||||
# Output Current Java Version
|
||||
java -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}
|
||||
Loading…
Reference in New Issue
Block a user