Skip to content

Commit 0e2349f

Browse files
committed
avoid dirty in repo2docker version in docker image
by calling git clean
1 parent b20eb6a commit 0e2349f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ 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
89
RUN mkdir /tmp/wheelhouse \
910
&& cd /tmp/wheelhouse \
1011
&& pip3 install wheel \
11-
&& pip3 wheel --no-cache-dir /tmp/src
12+
&& pip3 wheel --no-cache-dir /tmp/src \
13+
&& ls -l /tmp/wheelhouse
1214

1315
FROM alpine:${ALPINE_VERSION}
1416

@@ -17,7 +19,8 @@ RUN apk add --no-cache git git-lfs python3 bash
1719

1820
# install repo2docker
1921
COPY --from=0 /tmp/wheelhouse /tmp/wheelhouse
20-
RUN pip3 install --no-cache-dir /tmp/wheelhouse/*.whl
22+
RUN pip3 install --no-cache-dir /tmp/wheelhouse/*.whl \
23+
&& pip3 list
2124

2225
# add git-credential helper
2326
COPY ./docker/git-credential-env /usr/local/bin/git-credential-env

0 commit comments

Comments
 (0)