krish
Error: Unable to access jarfile target/*jar
FROM maven:3-openjdk-17 AS build
COPY . .
RUN mvn clean package -DskipTests
FROM openjdk:17.0.1-jdk-slim
COPY --from=build /target/jobseeking-0.0.1-SNAPSHOT.war jobseeking.war
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "jobseeking.war"]
52 replies