adding files 2
This commit is contained in:
23
docker/order-service.Dockerfile
Normal file
23
docker/order-service.Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM container-registry.oracle.com/graalvm/jdk:25 AS build
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
RUN microdnf install -y maven && microdnf clean all
|
||||
|
||||
COPY pom.xml .
|
||||
COPY inventory-service/pom.xml inventory-service/pom.xml
|
||||
COPY payment-service/pom.xml payment-service/pom.xml
|
||||
COPY order-service/pom.xml order-service/pom.xml
|
||||
COPY order-service/src order-service/src
|
||||
|
||||
RUN mvn -pl order-service -am clean package -DskipTests
|
||||
|
||||
FROM container-registry.oracle.com/graalvm/jdk:25
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /workspace/order-service/target/order-service-1.0.0-SNAPSHOT.jar app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["java", "-XX:+UseContainerSupport", "-jar", "app.jar"]
|
||||
Reference in New Issue
Block a user