From 03e7f558a4b2e02f3061dfeb84c7fcb0f2f1c41f Mon Sep 17 00:00:00 2001 From: Isaac A <6174343+tenten8401@users.noreply.github.com> Date: Fri, 5 Oct 2018 23:10:49 -0400 Subject: [PATCH 1/2] Add fontconfig to dockerfile dependencies Some plugins that deal with rendering fonts might throw a nasty error since it's a headless JDK, supposedly installing this package fixes the issue. An example of the issue can be found here: https://hastebin.com/tegasuwedo.rb --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6cef411..acd3905 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM openjdk:8-jdk-alpine MAINTAINER Pterodactyl Software, -RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite \ +RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite fontconfig \ && adduser -D -h /home/container container USER container From 93c91f060c9cbf3214b0d7699af65628aa36a559 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Sun, 3 Mar 2019 19:50:57 -0500 Subject: [PATCH 2/2] fix java timezone stupidity Java uses /etc/timezone but we are looping in /etc/localtime. This just creates a symlink that fixes it. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index acd3905..8ceb522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ FROM openjdk:8-jdk-alpine MAINTAINER Pterodactyl Software, RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite fontconfig \ - && adduser -D -h /home/container container - + && adduser -D -h /home/container container \ + && ln -s /etc/localtime /etc/timezone + USER container ENV USER=container HOME=/home/container