Push core java image.
This commit is contained in:
parent
6a4392992f
commit
415f722708
23
Dockerfile
Normal file
23
Dockerfile
Normal 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"]
|
||||
|
|
@ -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
19
entrypoint.sh
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user