change package from template to dev.jansel.aglaea

This commit is contained in:
Jannik Reimers 2025-04-03 14:22:31 +02:00
parent 73efc57f32
commit ad82dbd409
Signed by: jansel
GPG key ID: 39C62D7D5233CFD0
9 changed files with 42 additions and 14 deletions

29
Dockerfile Normal file
View file

@ -0,0 +1,29 @@
# 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/template-1.0-SNAPSHOT.tar", "/dist" ]
# Extract the distribution files, and prepare them for use
RUN tar -xf /dist/template-1.0-SNAPSHOT.tar -C /dist/out
RUN chmod +x /dist/out/template-1.0-SNAPSHOT/bin/template
# Clean up unnecessary files
RUN rm /dist/template-1.0-SNAPSHOT.tar
# Set the correct working directory
WORKDIR /bot
# Run the distribution start script
ENTRYPOINT [ "/dist/out/template-1.0-SNAPSHOT/bin/template" ]