FROM openjdk:21-jdk-slim
RUN git clone https://git.primefactorsolutions.com/PFS/pfs-recruiting.git
RUN cd pfs-recruiting && ./mvnw clean package -Pproduction
COPY target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app.jar"]