fix(templates): ensure dependencies are met for CUDA templates
`software-properties-common` is required to use `add-apt-repository`, and this PR ensure `software-properties-common` is installed beforehand.
RUN {{ common.mount_cache(__lib_apt__) }} \
{{ common.mount_cache(__cache_apt__) }} \
- set -euxo pipefail && \
+ set -eux && \
+ apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common && \
# add deadsnakes ppa to install python
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && \
- apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common curl {% if "ubuntu22.04" in __base_image__ and __options__python_version == "3.10" %}python{{ __options__python_version }}-jammy{% else %}python{{ __options__python_version }}{% endif %} python{{ __options__python_version }}-dev python{{ __options__python_version }}-distutils
+ apt-get install -y --no-install-recommends --allow-remove-essential curl {% if "ubuntu22.04" in __base_image__ and __options__python_version == "3.10" %}python{{ __options__python_version }}-jammy{% else %}python{{ __options__python_version }}{% endif %} python{{ __options__python_version }}-dev python{{ __options__python_version }}-distutils
RUN ln -sf /usr/bin/python{{ __options__python_version }} /usr/bin/python3 && \
ln -sf /usr/bin/pip{{ __options__python_version }} /usr/bin/pip3
