Spaces:
Runtime error
Runtime error
Download Dockerfile from alberdjuniawan/anput-api: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/alberdjuniawan/anput-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/alberdjuniawan/anput-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/alberdjuniawan/anput-api/resolve/main/Dockerfile
359 Bytes
| # builder | |
| FROM golang:1.25-alpine AS builder | |
| RUN apk add --no-cache git | |
| WORKDIR /app | |
| COPY go.mod go.sum ./ | |
| RUN go mod download | |
| COPY . . | |
| RUN go build -o main . | |
| # runner | |
| FROM alpine:latest | |
| WORKDIR /root/ | |
| RUN apk add --no-cache ca-certificates ffmpeg | |
| COPY --from=builder /app/main . | |
| COPY --from=builder /app/public ./public | |
| EXPOSE 8080 | |
| CMD ["./main"] |