# 使用官方的 Alpine Linux 作为基础镜像 FROM alpine:latest # 设置工作目录 WORKDIR /root/ # 将编译好的二进制文件复制到镜像中 #COPY config ./config COPY bot . RUN chmod +x ./bot # 暴露端口(如果需要) #EXPOSE 8080 # 运行应用程序 ENTRYPOINT ["sh","-c","./bot"]