FROM openjdk:13-alpine MAINTAINER https://github.com/saibotk/BlockMap-Docker ARG USER=blockmap ARG GROUP=blockmap ARG PUID=844 ARG PGID=844 ENV OUTPUT=/blockmap/output \ INPUT_OVERWORLD=/blockmap/input/region \ INPUT_NETHER=/blockmap/input/DIM1/region \ INPUT_END=/blockmap/input/DIM-1/region \ VERSION=1.4.0 \ SHA1=6b51f4d3d23094da2820d9461036a618c2933083 RUN mkdir -p /opt/blockmap /blockmap && \ apk add --update --no-cache su-exec binutils gettext libintl && \ apk add --update --no-cache --virtual .build-deps curl && \ curl -sSL https://github.com/Minecraft-Technik-Wiki/BlockMap/releases/download/$VERSION/BlockMap-$VERSION.jar -o /opt/blockmap/BlockMap.jar && \ echo "$SHA1 /opt/blockmap/BlockMap.jar" | sha1sum -c && \ chmod ugo=rwx /opt/blockmap && \ ln -s $INPUT_OVERWORLD /opt/blockmap/overworld && \ ln -s $INPUT_NETHER /opt/blockmap/nether && \ ln -s $INPUT_END /opt/blockmap/end && \ ln -s $OUTPUT /opt/blockmap/output && \ apk del .build-deps curl && \ addgroup -g $PGID -S $GROUP && \ adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \ chown -R $USER:$GROUP /opt/blockmap /blockmap COPY files/ / ENTRYPOINT ["/docker-entrypoint.sh"]