Add Dockerfile
This commit is contained in:
parent
6c8d486052
commit
a683b7225e
13
DiscordBot/Dockerfile
Normal file
13
DiscordBot/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM maven:3.8.5-openjdk-17-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /home/container
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
|
||||
# Build the app
|
||||
RUN mvn clean package -q -T4C
|
||||
|
||||
# Start the app
|
||||
CMD ["java", "-jar", "target/DiscordBot.jar"]
|
Loading…
Reference in New Issue
Block a user