Dockerfile: remove bash-ism

This commit is contained in:
Carlo Cabrera 2023-03-16 01:07:19 +08:00
parent 9ad7f91801
commit 60b1cb7afd
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -36,7 +36,7 @@ RUN apt-get update \
uuid-runtime \ uuid-runtime \
tzdata \ tzdata \
jq \ jq \
&& if [[ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]]; then apt-get install -y gh gpg skopeo; fi \ && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]; then apt-get install -y gh gpg skopeo; fi \
&& apt-get remove --purge -y software-properties-common \ && apt-get remove --purge -y software-properties-common \
&& apt-get autoremove --purge -y \ && apt-get autoremove --purge -y \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \