LanguageBlockBot/Dockerfile

16 lines
329 B
Docker
Raw Permalink Normal View History

2024-05-16 15:52:59 +02:00
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"]