forked from dockhippie/minecraft-vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM cwlf/openjdk-openj9:latest
MAINTAINER Chip Wolf <[email protected]>
VOLUME ["/minecraft/merge", "/minecraft/world", "/minecraft/logs"]
EXPOSE 25565 25575
WORKDIR /minecraft
ENTRYPOINT ["/usr/bin/entrypoint"]
CMD ["/bin/s6-svscan", "/etc/s6"]
ENV MINECRAFT_VERSION 1.12.2
ENV SERVER_JAR minecraft_server.${MINECRAFT_VERSION}.jar
ENV MINECRAFT_URL https://s3.amazonaws.com/Minecraft.Download/versions/${MINECRAFT_VERSION}/${SERVER_JAR}
RUN curl --create-dirs -sLo /minecraft/${SERVER_JAR} ${MINECRAFT_URL}
ADD rootfs /
ARG VERSION
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.version=$VERSION
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vcs-url="https://github.com/dockerwolf/minecraft-vanilla.git"
LABEL org.label-schema.name="Minecraft Vanilla"
LABEL org.label-schema.vendor="Chip Wolf"
LABEL org.label-schema.schema-version="1.0"