Add openjdk8, fix deprecated Dockerfile syntax (Issue #1)

Added openjdk8-jre from the default alpine repos, set JAVA_HOME and PATH env variables accordingly.

Also fixed deprecated Dockerfile syntax: `MAINTAINER` -> `LABEL maintainer="..."`
This commit is contained in:
jreichmann 2018-03-17 19:07:43 +01:00
parent 7499bd4b46
commit be7d557deb
2 changed files with 11 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.swp

View File

@ -1,12 +1,19 @@
FROM alpine:edge
MAINTAINER Jona Reichmann
LABEL maintainer="Jona Reichmann"
RUN apk update \
&& apk upgrade \
&& apk add \
curl \
jq
jq \
openjdk8-jre
ADD fsRoot /
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre
ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
RUN ["java", "-version"]
CMD ["bash", "-c", "/opt/minecraft/entrypoint.sh"]