Spaces:
bluece
/
Paused

DEMO2 / Dockerfile
wIK5Ez2o's picture
Update Dockerfile
6c8cde5 verified
Raw History Blame
719 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 go mod tidy && ls -al /go/pkg/mod
RUN sed -i 's/ind := strings.Index(path, importPath)/ind := strings.Index(path, importPath)\n println(path + ", " + importPath)/g' \
/go/pkg/mod/github.com/bincooo/go-annotation@v0.0.0-20241129022159-ea84d341fcda/internal/module/interface.go
RUN make install
RUN make build-linux
RUN cat /tmp/go_build_gen_works/chatgpt-adapter/relay/hf/container.gen.go
FROM alpine:3.19.0
WORKDIR /app
COPY --from=builder /app/bin/linux/server ./server
RUN chmod +x server
ENV ARG "--port 8080"
CMD ["./server ${ARG}"]
ENTRYPOINT ["sh", "-c"]