DEMO1 / Dockerfile
wIK5Ez2o's picture
Update Dockerfile
edce6b8 verified
raw
history blame
348 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
FROM alpine:3.19.0
WORKDIR /app
COPY --from=builder /app/bin/linux/server ./server
ADD config.yaml .
RUN chmod +x server
ENV ARG "--port 7860"
CMD ["./server ${ARG}"]
ENTRYPOINT ["sh", "-c"]