adapter / Dockerfile
gitdeem's picture
Upload 2 files
826f3dd verified
raw
history blame contribute delete
409 Bytes
FROM golang:1.21-alpine AS builder
WORKDIR /app
RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git -b v2 .
RUN make build-linux
FROM ubuntu:latest
WORKDIR /app
COPY --from=builder /app/bin/linux/server ./server
ADD config.yaml .
RUN mkdir log \
&& chmod +x server \
&& chmod 777 log
ENV ARG "--port 7860"
CMD ["./server ${ARG}"]
ENTRYPOINT ["sh", "-c"]