Files
unofficial-gpt4/Dockerfiles/Dockerfile.jvm
2024-02-17 19:24:35 +08:00

21 lines
516 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 从 sapmachine:17.0.10-jre-ubuntu-jammy 镜像开始构建
FROM sapmachine:17.0.10-jre-ubuntu-jammy
# 指定维护者的名字
LABEL maintainer="Yanyutin753"
# 切换到 root 用户
USER root
# 复制JAR文件到容器的/app目录下
COPY /target/gpt-4-copilot-0.0.4.jar /app/app.jar
# 切换到/app目录
WORKDIR /app
# 声明服务运行在8081端口
EXPOSE 8081
# 指定docker容器启动时运行jar包适当减少JVM内存分配
ENTRYPOINT exec java $JAVA_OPTS -Dfile.encoding=UTF-8 -jar app.jar $@