An unofficial Curl Docker image using latest Alpine Linux with Zstandard support.
Note: This Docker image exists to help test static-web-server using Zstandard. If you are looking for the official one, then please visit https://github.com/curl/curl-container
For example, print out the curl release version, protocols and features.
docker run --rm joseluisq/alpine-curl curl --version
# curl 8.2.0 (aarch64-unknown-linux-musl) libcurl/8.2.0 OpenSSL/3.1.1 zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 libidn2/2.3.4 libssh2/1.10.0 nghttp2/1.55.1
# Release-Date: 2023-07-19
# Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
# Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM NTLM_WB SSL threadsafe TLS-SRP UnixSockets zstd
Or perform a request. For instance, using the latest Zstandard compression algorithm.
Note the accept-encoding
and content-encoding
headers below.
docker run --rm joseluisq/alpine-curl \
curl -I -H "accept-encoding: zstd" https://www.facebook.com
# HTTP/2 200
# vary: Accept-Encoding
# content-encoding: zstd
# document-policy: force-load-at-top
# cross-origin-opener-policy: same-origin-allow-popups
# pragma: no-cache
# cache-control: private, no-cache, no-store, must-revalidate
# expires: Sat, 01 Jan 2000 00:00:00 GMT
# x-content-type-options: nosniff
# x-xss-protection: 0
# x-frame-options: DENY
# strict-transport-security: max-age=15552000; preload
# content-type: text/html; charset="utf-8"
# date: Sun, 23 Jul 2023 20:14:59 GMT
# alt-svc: h3=":443"; ma=8640
You can also use the image as a base for your Dockerfile:
FROM joseluisq/alpine-curl
Unless you explicitly state otherwise, any contribution you intentionally submitted for inclusion in current work, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.
Feel free to submit a pull request or file an issue.
This work is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
© 2023-present Jose Quintana