ClaptrapBot/Dockerfile
Renovate 5aae491f6b
Some checks failed
ci/woodpecker/push/build_docker Pipeline failed
ci/woodpecker/pull_request_closed/build_docker Pipeline was successful
⬆️ Update eclipse-temurin Docker tag to v21.0.1_12-jdk-alpine
2023-12-29 15:27:46 +00:00

15 lines
599 B
Docker

FROM eclipse-temurin:21.0.1_12-jdk-alpine AS build
WORKDIR /workspace/app
COPY . /workspace/app
RUN ./gradlew clean build
RUN mkdir -p build/dependency && (cd build/dependency; jar -xf ../libs/*.jar)
FROM eclipse-temurin:21.0.1_12-jdk-alpine
ARG DEPENDENCY=/workspace/app/build/dependency
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","net.Broken.MainBot"]
LABEL org.opencontainers.image.source=https://git.sebclem.fr/sebclem/ClaptrapBot