Compare commits

...

2 commits

Author SHA1 Message Date
jreichmann be7d557deb 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="..."`
2018-03-17 19:07:43 +01:00
jreichmann 7499bd4b46 Fix Dockerfile invalid because of missing backslash 2018-03-03 11:11:30 +01:00
2 changed files with 12 additions and 3 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
curl \
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"]