From 9e9dd062bc14a68e9d869a4d898b0b11e444444c Mon Sep 17 00:00:00 2001 From: Tim Head Date: Sun, 8 Sep 2019 10:08:15 +0200 Subject: [PATCH] Restore the hooks directory when building the docker image --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f1d8eace..49d1443e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ RUN apk add --no-cache git python3 python3-dev # build wheels in first image ADD . /tmp/src -RUN cd /tmp/src && git clean -xfd && git status +# restore the hooks directory so that the repository isn't marked as dirty +RUN cd /tmp/src && git clean -xfd && git checkout -- hooks && git status RUN mkdir /tmp/wheelhouse \ && cd /tmp/wheelhouse \ && pip3 install wheel \