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:
parent
f3f004f4ea
commit
1dfb4ebb06
@ -10,7 +10,7 @@ RUN apt-get update && \
|
|||||||
reprepro python3 binfmt-support e2fsprogs \
|
reprepro python3 binfmt-support e2fsprogs \
|
||||||
multistrap qemu-user-static debootstrap quilt && \
|
multistrap qemu-user-static debootstrap quilt && \
|
||||||
apt-get clean && \
|
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 && \
|
RUN echo "builder ALL=NOPASSWD: ALL" > /etc/sudoers.d/builder-nopasswd && \
|
||||||
chmod 660 /etc/sudoers.d/builder-nopasswd
|
chmod 660 /etc/sudoers.d/builder-nopasswd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user