16 lines
329 B
Docker
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"]
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|