Spaces:
Paused
Paused
Download Dockerfile from xdxb/chutesAI2api: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/xdxb/chutesAI2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xdxb/chutesAI2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xdxb/chutesAI2api/resolve/main/Dockerfile
515 Bytes
| FROM golang:alpine AS builder | |
| RUN apk add --no-cache git | |
| ENV CGO_ENABLED=0 \ | |
| GO111MODULE=on \ | |
| GOOS=linux | |
| WORKDIR /build | |
| RUN git clone https://github.com/deanxv/chutesAI2api.git . | |
| RUN go mod download | |
| RUN go build -trimpath -ldflags "-s -w" -o /app/chutesai2api | |
| FROM alpine:latest | |
| RUN apk add --no-cache \ | |
| ca-certificates \ | |
| tzdata | |
| COPY --from=builder /app/chutesai2api /chutesai2api | |
| RUN mkdir -p /app/chutesai2api/data | |
| EXPOSE 7011 | |
| WORKDIR /app/chutesai2api/data | |
| ENTRYPOINT ["/chutesai2api"] |