Spaces:
Sleeping
Sleeping
Download Dockerfile from anthony8p2/c2: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/spaces/anthony8p2/c2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/anthony8p2/c2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/anthony8p2/c2/resolve/main/Dockerfile
353 Bytes
| FROM golang:1.21 AS builder | |
| ENV CGO_ENABLED=0 | |
| RUN apt-get update && apt-get install -y git | |
| RUN git clone https://github.com/y22emc2/Duck2api.git /app | |
| WORKDIR /app | |
| RUN go mod download | |
| RUN go build -ldflags "-s -w" -o /app/duck2api . | |
| FROM alpine:latest | |
| WORKDIR /app | |
| COPY --from=builder /app/duck2api /app/duck2api | |
| EXPOSE 8080 | |
| CMD ["./duck2api"] |