summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-26 18:47:37 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-26 18:47:48 +0100
commit346060b376c2f977b6d7b2ad9dc3bcfa21038eaf (patch)
tree49f0012e489b556f1c17c7195d1cb320df028dd0 /docker
parent9a94f97b5203be7b55f6127904d76076c6795ce7 (diff)
downloadvyos-build-346060b376c2f977b6d7b2ad9dc3bcfa21038eaf.tar.gz
vyos-build-346060b376c2f977b6d7b2ad9dc3bcfa21038eaf.zip
Docker: remove intermediate files/folders from container root
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile26
1 files changed, 13 insertions, 13 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 880e2945..6c1862e9 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -133,10 +133,10 @@ RUN eval $(opam env --root=/opt/opam --set-root) && \
# Build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
- git clone https://github.com/vyos/libvyosconfig.git && \
- cd libvyosconfig && git checkout 5138b5eb && \
+ git clone https://github.com/vyos/libvyosconfig.git /tmp/libvyosconfig && \
+ cd /tmp/libvyosconfig && git checkout 5138b5eb && \
dpkg-buildpackage -uc -us -tc -b && \
- dpkg -i ../libvyosconfig0_*_$(dpkg-architecture -qDEB_HOST_ARCH).deb
+ dpkg -i /tmp/libvyosconfig0_*_$(dpkg-architecture -qDEB_HOST_ARCH).deb
# Packages needed for vyatta-cfg
RUN apt-get update && apt-get install -y \
@@ -356,11 +356,11 @@ RUN wget -O /tmp/open-vmdk-master.zip https://github.com/vmware/open-vmdk/archiv
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941691
# https://salsa.debian.org/live-team/live-build/merge_requests/30
#
-RUN wget https://salsa.debian.org/jestabro-guest/live-build/commit/63425b3e4f7ad3712ced4c9a3584ef9851c0355a.patch && \
- git clone https://salsa.debian.org/live-team/live-build.git && \
- cd live-build && \
- git checkout debian/1%20190311 && \
- patch -p1 < ../63425b3e4f7ad3712ced4c9a3584ef9851c0355a.patch && \
+RUN wget https://salsa.debian.org/jestabro-guest/live-build/commit/63425b3e4f7ad3712ced4c9a3584ef9851c0355a.patch \
+ -O /tmp/63425b3e4f7ad3712ced4c9a3584ef9851c0355a.patch && \
+ git clone https://salsa.debian.org/live-team/live-build.git /tmp/live-build && \
+ cd /tmp/live-build && git checkout debian/1%20190311 && \
+ patch -p1 < /tmp/63425b3e4f7ad3712ced4c9a3584ef9851c0355a.patch && \
dch -n "Applying fix for missing archive keys" && \
dpkg-buildpackage -us -uc && \
sudo dpkg -i ../live-build*.deb
@@ -372,11 +372,11 @@ RUN wget https://salsa.debian.org/jestabro-guest/live-build/commit/63425b3e4f7ad
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921815
# https://salsa.debian.org/installer-team/debootstrap/merge_requests/26
#
-RUN wget https://salsa.debian.org/klausenbusk-guest/debootstrap/commit/a9a603b17cadbf52cb98cde0843dc9f23a08b0da.patch && \
- git clone https://salsa.debian.org/installer-team/debootstrap && \
- cd debootstrap && \
- git checkout 1.0.114 && \
- patch -p1 < ../a9a603b17cadbf52cb98cde0843dc9f23a08b0da.patch && \
+RUN wget https://salsa.debian.org/klausenbusk-guest/debootstrap/commit/a9a603b17cadbf52cb98cde0843dc9f23a08b0da.patch \
+ -O /tmp/a9a603b17cadbf52cb98cde0843dc9f23a08b0da.patch && \
+ git clone https://salsa.debian.org/installer-team/debootstrap /tmp/debootstrap && \
+ cd /tmp/debootstrap && git checkout 1.0.114 && \
+ patch -p1 < /tmp/a9a603b17cadbf52cb98cde0843dc9f23a08b0da.patch && \
dch -n "Applying fix for docker image compile" && \
dpkg-buildpackage -us -uc && \
sudo dpkg -i ../debootstrap*.deb