Append instead of writing os-release from scratch

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2023-04-07 12:43:32 +02:00
parent e1709c687b
commit b9afb8d1e9
No known key found for this signature in database
GPG Key ID: 0069994DD7392198

View File

@ -90,7 +90,7 @@ docker:
ENV OS_REPO=${IMAGE_REPOSITORY}
ENV OS_VERSION=${RKE2_VERSION_TAG}_${VERSION}
ENV OS_LABEL=${BASE_IMAGE_TAG}_${RKE2_VERSION_TAG}_${VERSION}
RUN envsubst >/etc/os-release </usr/lib/os-release.tmpl
RUN envsubst >>/etc/os-release </usr/lib/os-release.tmpl
RUN echo "export PATH=/var/lib/rancher/rke2/bin:$PATH" >> /etc/profile
RUN mkdir -p /opt/rke2/scripts/
COPY scripts/* /opt/rke2/scripts/