All checks were successful
Build Bluemap Image / Build-bluemap-Stats-Image (push) Successful in 7m50s
30 lines
1.1 KiB
Docker
30 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 and Java 21 Temurin
|
|
RUN apt-get update && \
|
|
apt-get install -y wget curl gnupg software-properties-common && \
|
|
curl -fsSL https://packages.adoptium.net/artifactory/api/gpg/key/public -o /etc/apt/trusted.gpg.d/adoptium.asc && \
|
|
echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/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/postgresql.jar
|
|
|
|
# Set the working directory
|
|
WORKDIR /opt/bluemap
|
|
|
|
# Run BlueMap CLI
|
|
CMD ["java", "-jar", "bluemap.jar", "-wg"]
|