LanguageBlockBot/Dockerfile
Andrea Cavalli 52ee9f8e53 First commit
2024-05-16 15:52:59 +02:00

16 lines
329 B
Docker

FROM maven:3-eclipse-temurin-22 as build
WORKDIR /build
COPY --link src src
COPY --link pom.xml pom.xml
RUN mvn package -DskipTests
FROM eclipse-temurin:22-jdk-alpine
WORKDIR /build
COPY --from=build --link /build/target/language-block-bot-*.jar language-block-bot.jar
ENTRYPOINT ["java", "-jar", "language-block-bot.jar"]