We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbf1750 commit 302b22bCopy full SHA for 302b22b
cron/Dockerfile
@@ -1,8 +1,8 @@
1
ARG BASE_IMAGE
2
FROM ${BASE_IMAGE}
3
USER 0
4
-RUN if [ -z "${http_proxy}" ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi
5
-RUN if [ -z "${https_proxy}" ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
+RUN if [ -n "${http_proxy}" ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi
+RUN if [ -n "${https_proxy}" ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
6
RUN apt-get update && apt-get install -y --no-install-recommends cron && \
7
rm -r /var/lib/apt/lists/*
8
COPY entrypoint.sh /entrypoint.sh
0 commit comments