mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-09-15 11:06:43 +00:00
Minimize Docker image size with multi-stage build
Minimize the size of the resulting Docker image size by using multi-stage build and copying the resulting binaries into a minimal Debian system. This was done with the Alpine Docker images up until now but not with the Debian images.
This commit is contained in:
@@ -126,7 +126,7 @@ COPY curl_ff* out/
|
||||
RUN sed -i 's@/usr/bin/env bash@/usr/bin/env ash@' out/curl_*
|
||||
RUN chmod +x out/curl_*
|
||||
|
||||
# When using alpine, create a final, minimal image with the compiled binaries
|
||||
# Create a final, minimal image with the compiled binaries
|
||||
# only.
|
||||
FROM alpine:3.15.0
|
||||
# curl tries to load the CA certificates for libnss.
|
||||
|
||||
Reference in New Issue
Block a user