Skip to content

Commit 9e9dd06

Browse files
committed
Restore the hooks directory when building the docker image
1 parent 75c2a24 commit 9e9dd06

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)