Push core java image.

This commit is contained in:
Dane Everitt 2017-03-17 19:29:12 -04:00
parent 6a4392992f
commit 415f722708
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 44 additions and 2 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# ----------------------------------
# Pterodactyl Core Dockerfile
# Environment: Java
# Minimum Panel Version: 0.6.0
# ----------------------------------
FROM frolvlad/alpine-oraclejdk8:cleaned
MAINTAINER Pterodactyl Software, <support@pterodactyl.io>
RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update curl ca-certificates openssl git tar bash \
&& adduser -D -h /home/container container
USER container
ENV 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
Generic docker containers designed to work with Pterodactyl Panel and its daemon.
# Containers: Java
Generic java container built on top of Alpine Linux to support games such as Minecraft and Bungeecord.

19
entrypoint.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
sleep 5
cd /home/container
# Output Current Java Version
java -version
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP_CMD} | 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