# ---------------------------------- # Pterodactyl Core Dockerfile # Environment: Java # Minimum Panel Version: 1.7.0 # ---------------------------------- # Copyright (c) 2021 Matthew Penner # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # ---------------------------------- # 2022-09-23 FROM --platform=linux/amd64 container-registry.oracle.com/graalvm/enterprise:latest ARG TARGETPLATFORM ARG TARGETOS ARG TARGETARCH ARG BUILDPLATFORM ARG BUILDOS ARG BUILDARCH ARG BUILDVARIANT COPY platform.sh . RUN ./platform.sh CMD ["bash"] ENV LANG C.UTF-8 ENV PATH ${JAVA_HOME}/bin:${PATH} LABEL author "Olivier Le Bris" LABEL maintainer "zogg" LABEL com.centurylinklabs.watchtower.enable=false LABEL org.opencontainers.image.source "https://zogg.fr" LABEL org.opencontainers.image.licenses MIT RUN set -eux && \ microdnf update -y && \ microdnf install -y curl ca-certificates p11-kit openssl tar sqlite fontconfig tzdata iproute libstdc++ bash && \ useradd -d /home/container -m container USER container ENV USER container ENV HOME /home/container WORKDIR /home/container ENV LANG C.UTF-8 ENV PATH ${JAVA_HOME}/bin:${PATH} COPY files/docker-java-home /usr/local/bin/docker-java-home COPY files/bashrc /home/container/.bashrc COPY files/entrypoint.sh /entrypoint.sh CMD ["/bin/bash", "/entrypoint.sh"]