Rafael Calleja commited on
Commit
e4775f3
·
1 Parent(s): 2219174

try remove files

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -50,6 +50,8 @@ RUN --security=insecure \
50
  export CASPER_GENERATE_UUID=1 && \
51
  eggs calamares -i -r -v && \
52
  SUDO_USER=ubuntu eggs produce --max --nointeractive --noicon --excludes=static,homes -v --release" && \
 
 
53
  cp $(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) /tmp/distro-live.iso
54
 
55
  FROM alpine
 
50
  export CASPER_GENERATE_UUID=1 && \
51
  eggs calamares -i -r -v && \
52
  SUDO_USER=ubuntu eggs produce --max --nointeractive --noicon --excludes=static,homes -v --release" && \
53
+ export EXCLUDE_FILE=$(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) && \
54
+ find ${ROOTFS} -type f ! -path "${EXCLUDE_FILE}" -exec rm -rf {} + && \
55
  cp $(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) /tmp/distro-live.iso
56
 
57
  FROM alpine