FROM docker.io/alpine:latest MAINTAINER Hende, Botond LABEL Description="PaperMC server" RUN apk add --no-cache --virtual container-buildtime jq curl RUN apk add --no-cache openjdk21 RUN mkdir /opt/minecraft RUN mkdir /tmp/papermc COPY papermc_getlatest.sh /tmp/papermc/papermc_getlatest.sh RUN /tmp/papermc/papermc_getlatest.sh RUN rm -rf /tmp/papermc COPY start.sh /opt/minecraft/start.sh RUN addgroup -S minecraft && adduser -S minecraft -G minecraft RUN chown -R minecraft:minecraft /opt/minecraft RUN apk del container-buildtime WORKDIR /opt/minecraft/world USER minecraft EXPOSE 23673/tcp CMD ["/opt/minecraft/start.sh"]