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:
parent
7499bd4b46
commit
be7d557deb
|
@ -0,0 +1,2 @@
|
|||
*.swp
|
||||
|
11
Dockerfile
11
Dockerfile
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue