Skip to content

Commit 9af9b34

Browse files
authored
[MRG] Restore the hooks directory when building the docker image (#786)
[MRG] Restore the hooks directory when building the docker image
2 parents afb24a4 + 9e9dd06 commit 9af9b34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apk add --no-cache git python3 python3-dev
55

66
# build wheels in first image
77
ADD . /tmp/src
8-
RUN cd /tmp/src && git clean -xfd && git status
8+
# restore the hooks directory so that the repository isn't marked as dirty
9+
RUN cd /tmp/src && git clean -xfd && git checkout -- hooks && git status
910
RUN mkdir /tmp/wheelhouse \
1011
&& cd /tmp/wheelhouse \
1112
&& pip3 install wheel \

0 commit comments

Comments
 (0)