Files
JdrBot/Dockerfile
Skydust 979d34e0b8
All checks were successful
Production deployment / Build (push) Successful in 1m58s
Production deployment / Deploying (push) Successful in 16s
Separated the cmdManager logic like PotatOS and added the version to gradle.properties
2023-09-17 16:44:01 +02:00

15 lines
429 B
Docker

FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jdk AS builder
WORKDIR /app
COPY . /app
RUN ./gradlew shadowJar
FROM public.ecr.aws/docker/library/eclipse-temurin:20.0.2_9-jre AS runner
LABEL authors="skydust"
WORKDIR /app
RUN apt update && apt install -y zabbix-sender && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/build/libs/JdrBot.jar /app/JdrBot.jar
COPY start.sh /app
CMD ["/bin/bash","./start.sh"]