Dockerfile.isar: preserve /var/tmp directory from an unwanted removal

Fix a bug in the Docker image build process
that delete /var/tmp directory.
Desired is only delete its content.

Signed-off-by: Matteo Facchinetti <matteo.facchinetti@sirius-es.it>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Matteo Facchinetti 2019-08-29 17:34:12 +02:00 committed by Jan Kiszka
parent f3f004f4ea
commit 1dfb4ebb06

View File

@ -10,7 +10,7 @@ RUN apt-get update && \
reprepro python3 binfmt-support e2fsprogs \
multistrap qemu-user-static debootstrap quilt && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp*
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
chmod 660 /etc/sudoers.d/builder-nopasswd