FROM quay.io/kiegroup/kogito-runtime-jvm:latest

ENV RUNTIME_TYPE quarkus

# How to use this image with a simple example:
# 1. Clone kogito-examples repository
# 2. Build the process-knative-quickstart-quarkus with `mvn clean package -DskipTests=true
# 3. Copy this file to the project root
# 4. Build the image: docker build --tag quay.io/<yournamespace>/process-knative-quickstart-quarkus:latest -f operator/kubernetes/Dockerfile .
#   4.1 Optionally test the image locally: docker run --rm -it -p 8080:8080 quay.io/<yournamespace>/process-knative-quickstart-quarkus:latest
# 5. Push it: docker push quay.io/<yournamespace>/process-knative-quickstart-quarkus:latest
# 6. Deploy it on Kubernetes with the kogito operator, as a reference use process-knative-quickstart-quarkus.yaml

COPY target/*-runner.jar $KOGITO_HOME/bin
COPY target/lib $KOGITO_HOME/bin/lib
