Files
unofficial-gpt4/Dockerfiles/Dockerfile.jar
Yanyutin753 56f9d68e21 gpt4-copilot-java v0.2.7
增加请求json不匹配返回500报错
2024-05-01 19:51:07 +08:00

22 lines
631 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
# 设置系统时区为Asia/Shanghai北京时间
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 复制JAR文件到容器的/app目录下
COPY /target/gpt-4-copilot-0.2.7.jar app.jar
# 声明服务运行在8081端口
EXPOSE 8081
# 指定docker容器启动时运行jar包适当减少JVM内存分配
ENTRYPOINT exec java $JAVA_OPTS -Dfile.encoding=UTF-8 -jar app.jar $@