Skip to content

Commit 9030fa9

Browse files
committed
better alpine build
1 parent 1e3f45d commit 9030fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ARG package
1010
ARG package_version
1111

1212
# Only add build tools for alpine image. The ubuntu based images have build tools already.
13-
RUN if [[ "$build_target" == *"alpine" ]] ; then apk add build-base ; fi
13+
RUN /bin/bash -c "if [[ $build_target == \*\"alpine\" ]] ; then apk add build-base ; fi"
1414

1515
# Install packaer and build all dependencies.
1616
RUN pip install $package==$package_version

0 commit comments

Comments
 (0)