...
Code Block | ||
---|---|---|
| ||
FROM maven:3.56.3-jdkopenjdk-8-slim AS build WORKDIR /usr/app COPY . /usr/app RUN mvn clean package -Dmaven.test.skip=true FROM openjdk:8-jdkjre-alpine COPY --from=build /usr/app/target/*.jar /app.jar EXPOSE 8080 ENTRYPOINT ["java","-jar","/app.jar"] |
...