Files
unofficial-gpt4/Dockerfiles/Dockerfile.jvm
Yanyutin753 f918d929a0 add
2024-02-14 11:38:29 +08:00

13 lines
363 B
Docker

# Using Oracle GraalVM for JDK 17
FROM container-registry.oracle.com/graalvm/jdk:21-ol8
# JAR file will be specified by passing in a build time argument to docker build
ARG APP_FILE
EXPOSE 8080
# opy the JAR file into the root and rename
COPY ./target/${APP_FILE} app.jar
# Run java with the jar file when the container starts up
CMD ["java","-jar","app.jar"]