https://github.com/k-candidate/docker-static-curl
https://github.com/k-candidate/docker-static-curl
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/k-candidate/docker-static-curl
- Owner: k-candidate
- Created: 2025-10-17T23:07:12.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-10-18T21:53:25.000Z (3 months ago)
- Last Synced: 2025-10-19T12:24:17.799Z (3 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-static-curl
A Multi-Arch (`amd64` and `arm64`) Distroless image containing only a statically compiled curl binary.
## Build
```bash
docker build --no-cache -t static-curl .
```
## Usage
```bash
docker run --rm static-curl https://httpbin.org/get
```
How to use in a minimal image:
```dockerfile
FROM kcandidate/static-curl AS curl
# Build stage here
# Runtime image
FROM gcr.io/distroless/static:nonroot
# Copy /etc/ssl/certs/ca-certificates.crt (Debian like) \
# or /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem (Fedora like) \
# if using private CA
# Copy static curl for health checks
COPY --from=curl /bin/curl /usr/bin/curl
CMD ["my-statically-linked-bin"]
```