Dockerfile 376 B

12345678910111213141516
  1. FROM golang:1.17.10 AS builder
  2. # ENV GOPROXY https://goproxy.io
  3. RUN mkdir /app
  4. ADD . /app/
  5. WORKDIR /app
  6. RUN go build -o chatgpt-dingtalk .
  7. FROM centos:centos7
  8. RUN mkdir /app
  9. WORKDIR /app
  10. COPY --from=builder /app/ .
  11. RUN chmod +x chatgpt-dingtalk && cp config.dev.json config.json && yum -y install vim net-tools telnet wget curl && yum clean all
  12. CMD ./chatgpt-dingtalk