DEMO / Dockerfile
wIK5Ez2o's picture
Update Dockerfile
469271c verified
raw
history blame
607 Bytes
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 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"]