Optimize layout in Dockerfile
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Kim Oliver Drechsel 2021-12-03 18:29:06 +01:00
parent ff126c88f9
commit d4471635f5
Signed by: Kim
GPG Key ID: B9D907EF02605A07

View File

@ -10,10 +10,6 @@ LABEL org.opencontainers.image.description="Minecraft Vanilla Server Java Editio
LABEL org.opencontainers.image.base.name="hub.docker.com/openjdk:18-jdk-alpine3.13"
LABEL org.opencontainers.image.title="Minecraft Vanilla Server Java Edition"
RUN apk update && \
apk add --no-cache --update coreutils && \
apk add --no-cache --update tzdata bash
ENV TZ=Europe/Berlin
ENV MINECRAFT_SERVER_VERSION="$MINECRAFT_SERVER_VERSION"
@ -25,6 +21,9 @@ VOLUME /app
ADD $DOWNLOAD_URL /opt/server.jar
COPY app /app
RUN apk update && \
apk add --no-cache --update coreutils && \
apk add --no-cache --update tzdata bash
RUN chmod 755 /app/entrypoint.sh
RUN echo "eula=true" > /app/eula.txt