adapter / Dockerfile
gitdeem's picture
Upload 3 files
72f34ec verified
raw
history blame
403 Bytes
FROM golang:1.21-alpine AS builder
WORKDIR /app
RUN apk add git make && git clone https://github.com/bincooo/chatgpt-adapter.git .
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"]