Restore the hooks directory when building the docker image

pull/786/head
Tim Head 2019-09-08 10:08:15 +02:00
rodzic 75c2a24c0c
commit 9e9dd062bc
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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 \