change package from template to dev.jansel.aglaea
This commit is contained in:
parent
73efc57f32
commit
ad82dbd409
9 changed files with 42 additions and 14 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal 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" ]
|
Loading…
Add table
Add a link
Reference in a new issue