diff --git a/Dockerfile b/Dockerfile index 3264a1a..50d71c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,6 @@ COPY entrypoint.sh / RUN chmod +x /entrypoint.sh COPY site-defaults.cfg /etc/mock/ + ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 7386912..0b6636d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,9 @@ SYSTEM=${INPUT_SYSTEM} ARCH=${INPUT_ARCH} NOCHECK=${INPUT_NOCHECK} +rm -rf /var/lib/mock/* +mount -t tmpfs tmpfs /var/lib/mock + RESULT="rpms=[" for SPEC in ${SPECS[@]}; do