Download deploy/docker/Dockerfile.go-gateway from Amal340/phishing-framework-code: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/datasets/Amal340/phishing-framework-code/resolve/main/deploy/docker/Dockerfile.go-gateway
- Command line
-
hf download hf://datasets/Amal340/phishing-framework-code/deploy/docker/Dockerfile.go-gateway
-
curl -L -o Dockerfile.go-gateway https://huggingface.co/datasets/Amal340/phishing-framework-code/resolve/main/deploy/docker/Dockerfile.go-gateway
451 Bytes
| # Multi-Stage Cloud-Native Build for Go Concurrent Inference Gateway | |
| FROM golang:1.22-alpine AS builder | |
| WORKDIR /app | |
| COPY go-gateway/go.mod ./ | |
| COPY go-gateway/ ./ | |
| RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /phish-gateway ./cmd/gateway/main.go | |
| FROM alpine:3.19 | |
| RUN adduser -D -g '' appuser | |
| USER appuser | |
| COPY --from=builder /phish-gateway /usr/local/bin/phish-gateway | |
| EXPOSE 8080 | |
| ENTRYPOINT ["/usr/local/bin/phish-gateway"] | |