change Dockerfile to use the official openjdk image
This commit is contained in:
parent
aadd464335
commit
e889d3e059
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
FROM debian:jessie
|
FROM openjdk:11-jre
|
||||||
MAINTAINER Chris <chris@zom.bi>
|
MAINTAINER Chris <chris@zom.bi>
|
||||||
EXPOSE 8123
|
EXPOSE 8123
|
||||||
EXPOSE 25565
|
EXPOSE 25565
|
||||||
EXPOSE 25565/udp
|
EXPOSE 25565/udp
|
||||||
|
|
||||||
ENV \
|
ENV \
|
||||||
DEPENDENCIES="openjdk-7-jre-headless git wget tar"
|
DEPENDENCIES="git wget tar"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
|
@ -15,7 +15,7 @@ RUN \
|
||||||
WORKDIR /usr/games
|
WORKDIR /usr/games
|
||||||
VOLUME ["/usr/games/mcserv"]
|
VOLUME ["/usr/games/mcserv"]
|
||||||
RUN \
|
RUN \
|
||||||
chown -R games: . &&\
|
chown games: /usr/games /usr/games/mcserv &&\
|
||||||
chmod 775 mcserv
|
chmod 775 mcserv
|
||||||
|
|
||||||
USER games
|
USER games
|
||||||
|
|
Loading…
Reference in a new issue