mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2026-04-22 23:47:15 +08:00
16 lines
376 B
Docker
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 |