We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa5abcb commit 8c227f3Copy full SHA for 8c227f3
Dockerfile.lite
@@ -18,9 +18,11 @@ ENV PYTHON_VERSION=3.11 \
18
HTTPS_PROXY=${https_proxy} \
19
NO_PROXY=${no_proxy}
20
21
-# Optional: help APT when /etc/apt/apt.conf.d is respected (env is usually enough)
22
-# RUN printf 'Acquire::http::Proxy "%s";\nAcquire::https::Proxy "%s";\n' "$http_proxy" "$https_proxy" \
23
-# > /etc/apt/apt.conf.d/80proxy
+# Configure APT to use proxy for package installation
+RUN if [ -n "$http_proxy" ]; then \
+ printf 'Acquire::http::Proxy "%s";\nAcquire::https::Proxy "%s";\n' "$http_proxy" "$https_proxy" \
24
+ > /etc/apt/apt.conf.d/80proxy; \
25
+ fi
26
27
# Install runtime dependencies
28
RUN apt-get update && \
0 commit comments