| 1 | # |
| 2 | # Copyright (c) 2022 Microsoft Corporation |
| 3 | # |
| 4 | # This program and the accompanying materials are made available under the |
| 5 | # terms of the Apache License, Version 2.0 which is available at |
| 6 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # SPDX-License-Identifier: Apache-2.0 |
| 9 | # |
| 10 | # Contributors: |
| 11 | # Microsoft Corporation - initial API and implementation |
| 12 | # |
| 13 | # |
| 14 | |
| 15 | FROM openjdk:17-jdk-slim |
| 16 | ARG JAR |
| 17 | |
| 18 | COPY $JAR app.jar |
| 19 | |
| 20 | # Use "exec" for Kubernetes graceful termination (SIGINT) to reach JVM. |
| 21 | ENTRYPOINT [ "sh", "-c", \ |
| 22 | "exec java $JVM_ARGS -jar app.jar"] |