2021-04-22 12:08:21 +00:00
|
|
|
FROM docker.io/library/openjdk:17-alpine
|
2019-06-10 02:00:34 +02:00
|
|
|
|
2021-10-26 21:48:08 +02:00
|
|
|
ENV VERSION=2.3.0
|
|
|
|
ENV SHA1=c9bb6395a8d920dd0ce39ff985325390061c6ea2
|
2019-06-10 02:00:34 +02:00
|
|
|
|
2020-07-09 22:52:12 +02:00
|
|
|
RUN mkdir -p /opt/blockmap /input /output && \
|
2019-06-10 02:00:34 +02:00
|
|
|
apk add --update --no-cache su-exec binutils gettext libintl && \
|
|
|
|
apk add --update --no-cache --virtual .build-deps curl && \
|
2020-07-09 22:52:12 +02:00
|
|
|
curl -sSL https://github.com/Minecraft-Technik-Wiki/BlockMap/releases/download/$VERSION/BlockMap-cli-$VERSION.jar -o /opt/blockmap/blockmap.jar && \
|
|
|
|
echo "$SHA1 /opt/blockmap/blockmap.jar" | sha1sum -c && \
|
|
|
|
apk del .build-deps curl
|
2019-06-10 02:00:34 +02:00
|
|
|
|
|
|
|
COPY files/ /
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|