Files
chatgpt-dingtalk/Dockerfile
T
2022-12-09 16:30:35 +08:00

16 lines
376 B
Docker

FROM golang:1.17.10 AS builder
# ENV GOPROXY https://goproxy.io
RUN mkdir /app
ADD . /app/
WORKDIR /app
RUN go build -o chatgpt-dingtalk .
FROM centos:centos7
RUN mkdir /app
WORKDIR /app
COPY --from=builder /app/ .
RUN chmod +x chatgpt-dingtalk && cp config.dev.json config.json && yum -y install vim net-tools telnet wget curl && yum clean all
CMD ./chatgpt-dingtalk