123456789101112131415161718192021222324252627282930313233343536373839 |
- FROM openjdk:8-jre-alpine
- WORKDIR /home/minecraft
- ADD ./rcon-cli_linux_amd64 /usr/local/bin/rcon-cli
- RUN apk add --no-cache su-exec python python-dev py2-pip bash \
- && addgroup -g 1000 minecraft \
- && adduser -D -u 1000 -G minecraft -h /home/minecraft minecraft \
- && pip install --no-cache-dir mcstatus \
- && apk del python-dev \
- && rm -rf /var/cache/apk/*
- ADD launch.sh /launch.sh
- HEALTHCHECK CMD mcstatus 127.0.0.1 ping
- EXPOSE 25565 25575
- VOLUME ["/home/minecraft"]
- CMD ["/launch.sh"]
- ENV UID=1000 GIU=1000 \
- SERVER=server.jar \
- JVM_XX_OPTS="-XX:+UseG1GC" MEMORY="1G"
|