2024-08-05 21:04:18 +00:00
|
|
|
FROM openjdk:21-jdk-buster as build
|
|
|
|
RUN apt-get install -y git
|
2024-08-05 19:05:20 +00:00
|
|
|
RUN git clone https://git.primefactorsolutions.com/PFS/pfs-recruiting.git
|
|
|
|
RUN cd pfs-recruiting && ./mvnw clean package -Pproduction
|
2024-08-05 21:04:18 +00:00
|
|
|
|
|
|
|
FROM build
|
|
|
|
COPY --from=0 pfs-recruiting/target/*.jar app.jar
|
2024-08-05 18:49:25 +00:00
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["java", "-jar", "/app.jar"]
|