31 lines
1.1 KiB
Docker
31 lines
1.1 KiB
Docker
# Use Ubuntu 24 as the base image
|
|
FROM ubuntu:24.04
|
|
|
|
# Set environment variables
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install required packages including Java 21 Temurin
|
|
RUN apt-get update && \
|
|
apt-get install -y wget curl gnupg software-properties-common && \
|
|
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor -o /usr/share/keyrings/adoptium.asc && \
|
|
echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb focal main" > /etc/apt/sources.list.d/adoptium.list && \
|
|
apt-get update && \
|
|
apt-get install -y temurin-21-jdk && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create the /opt/bluemap directory
|
|
RUN mkdir -p /opt/bluemap
|
|
|
|
# Copy BlueMap CLI jar to the image
|
|
ADD https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v5.5/bluemap-5.5-cli.jar /opt/bluemap/bluemap.jar
|
|
|
|
# Copy the PostgreSQL driver to /opt/bluemap
|
|
ADD https://jdbc.postgresql.org/download/postgresql-42.7.4.jar /opt/bluemap/
|
|
|
|
# Set the working directory
|
|
WORKDIR /opt/bluemap
|
|
|
|
# Run BlueMap CLI
|
|
CMD ["java", "-jar", "bluemap.jar", "-wg"]
|