minecraft/Dockerfile

8 lines
333 B
Docker
Raw Normal View History

2021-05-30 19:33:02 +00:00
FROM alpine
2021-05-30 19:39:45 +00:00
LABEL MAINTAINER="Lukáš Kucharczyk"
2021-05-30 19:33:02 +00:00
RUN wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar
RUN apk add openjdk11-jre
COPY eula.txt /
COPY server.properties /
EXPOSE 25565
CMD ["java", "-Xmx1024M", "-Xms1024M", "-jar", "minecraft_server.jar", "nogui"]