Fix: configure debian-proxy from Nexus with trusted=yes flag
This commit is contained in:
+4
-4
@@ -19,12 +19,12 @@ ENV HTTPS_PROXY=${https_proxy}
|
|||||||
|
|
||||||
# =========================================================
|
# =========================================================
|
||||||
# System dependencies & Extensions
|
# System dependencies & Extensions
|
||||||
# Timpa total sources.list dan bypass proxy eksternal
|
# (Gunakan Nexus debian-proxy lokal)
|
||||||
# =========================================================
|
# =========================================================
|
||||||
|
|
||||||
RUN echo "deb http://10.15.39.186:8081/repository/debian-proxy/ bullseye main" > /etc/apt/sources.list \
|
RUN echo "deb [trusted=yes] http://10.15.39.186:8081/repository/debian-proxy/ bullseye main" > /etc/apt/sources.list \
|
||||||
&& echo "deb http://10.15.39.186:8081/repository/debian-proxy/ bullseye-updates main" >> /etc/apt/sources.list \
|
&& echo "deb [trusted=yes] http://10.15.39.186:8081/repository/debian-proxy/ bullseye-updates main" >> /etc/apt/sources.list \
|
||||||
&& echo "deb http://10.15.39.186:8081/repository/debian-security-proxy/ bullseye-security main" >> /etc/apt/sources.list \
|
&& echo "deb [trusted=yes] http://10.15.39.186:8081/repository/debian-proxy/ bullseye-security main" >> /etc/apt/sources.list \
|
||||||
&& rm -rf /etc/apt/sources.list.d/* \
|
&& rm -rf /etc/apt/sources.list.d/* \
|
||||||
&& env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY apt-get update \
|
&& env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY apt-get update \
|
||||||
&& env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY apt-get install -y --no-install-recommends \
|
&& env -u http_proxy -u https_proxy -u HTTP_PROXY -u HTTPS_PROXY apt-get install -y --no-install-recommends \
|
||||||
|
|||||||
Reference in New Issue
Block a user