File size: 618 Bytes
51b3ce0
 
68109f6
51b3ce0
 
0dad7fb
11a070b
 
5e91f62
 
51b3ce0
 
0dad7fb
51b3ce0
 
de8a3bf
51b3ce0
 
68109f6
eb24227
469271c
df6cb56
51b3ce0
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.23-alpine AS builder

# 构建执行文件
WORKDIR /app
RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git -b v3.0.0-beta .
RUN make install
RUN make
# RUN make build-linux
# RUN make build-osx
# RUN make build-win

FROM alpine:3.19.0
RUN apk add curl unzip
WORKDIR /app
COPY --from=builder /app/bin/linux/server ./server
ADD config.yaml .
RUN chmod +x server

# 下载过盾文件
RUN curl -JLO https://raw.githubusercontent.com/bincooo/chatgpt-adapter/refs/heads/hel/bin.zip
RUN unzip bin.zip && tree .
ENV ARG "--port 7860"
CMD ["./server ${ARG}"]
ENTRYPOINT ["sh", "-c"]