geekai/Dockerfile
2023-06-03 20:48:32 +08:00

12 lines
427 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.

# FROM 表示设置要制作的镜像基于哪个镜像FROM指令必须是整个Dockerfile的第一个指令如果指定的镜像不存在默认会自动从Docker Hub上下载。
FROM centos:7
WORKDIR /usr/src/app
COPY src/bin/wechatGPT-amd64-linux /usr/src/app
# 容器对外暴露的端口号,这里和配置文件保持一致就可以
EXPOSE 5678
# 容器启动时执行的命令
CMD ["./wechatGPT-amd64-linux"]