mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-16 15:04:13 +00:00
13 lines
363 B
Docker
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"] |