Dockerfile 362 B

12345678910111213141516
  1. # 使用官方的 Alpine Linux 作为基础镜像
  2. FROM alpine:latest
  3. # 设置工作目录
  4. WORKDIR /root/
  5. # 将编译好的二进制文件复制到镜像中
  6. #COPY config ./config
  7. COPY game .
  8. RUN chmod +x ./game
  9. # 暴露端口(如果需要)
  10. #EXPOSE 8080
  11. # 运行应用程序
  12. #ENTRYPOINT ["sh","-c","./game game --path=/config/profile-gc.json --node=10001"]