# escape=\ # syntax=docker/dockerfile:1 FROM openjdk:21-jdk-slim # Create required directories RUN mkdir -p /bot/plugins RUN mkdir -p /bot/data RUN mkdir -p /dist/out # Declare required volumes VOLUME [ "/bot/data" ] VOLUME [ "/bot/plugins" ] # Copy the distribution files into the container COPY [ "build/distributions/aglaea-7.2.7.tar", "/dist" ] # Extract the distribution files, and prepare them for use RUN tar -xf /dist/aglaea-7.2.7.tar -C /dist/out RUN chmod +x /dist/out/aglaea-7.2.7/bin/aglaea # Clean up unnecessary files RUN rm /dist/aglaea-7.2.7.tar # Set the correct working directory WORKDIR /bot # Run the distribution start script ENTRYPOINT [ "/dist/out/aglaea-7.2.7/bin/aglaea" ]