fix java timezone stupidity

Java uses /etc/timezone but we are looping in /etc/localtime.
This just creates a symlink that fixes it.
This commit is contained in:
Michael (Parker) Parker 2019-03-03 19:50:57 -05:00
parent f79cc73b97
commit 93c91f060c

View File

@ -8,8 +8,9 @@ FROM openjdk:8-jdk-alpine
MAINTAINER Pterodactyl Software, <support@pterodactyl.io> MAINTAINER Pterodactyl Software, <support@pterodactyl.io>
RUN apk add --no-cache --update curl ca-certificates openssl git tar bash sqlite fontconfig \ 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 USER container
ENV USER=container HOME=/home/container ENV USER=container HOME=/home/container