RESTfulMC/DiscordBot/Dockerfile

13 lines
226 B
Docker
Raw Permalink Normal View History

2024-04-24 16:04:53 -07:00
FROM maven:3.8.5-openjdk-17-slim
# Set the working directory
WORKDIR /home/container
# Copy project files
COPY . .
# Build the app
2024-04-24 16:22:00 -07:00
RUN mvn clean package -q -T4C
2024-04-24 16:04:53 -07:00
# Start the app
CMD ["java", "-jar", "target/DiscordBot.jar"]