We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2c2fd commit 55fafc6Copy full SHA for 55fafc6
1.10/alpine3.7/Dockerfile
@@ -5,7 +5,7 @@ RUN apk add --no-cache ca-certificates
5
ENV GOLANG_VERSION 1.10.1
6
7
# no-pic.patch: https://golang.org/issue/14851 (Go 1.8 & 1.7)
8
-COPY *.patch /go-alpine-patches/
+#COPY *.patch /go-alpine-patches/
9
10
RUN set -eux; \
11
apk add --no-cache --virtual .build-deps \
update.sh
@@ -112,6 +112,14 @@ for version in "${versions[@]}"; do
112
;;
113
esac
114
115
+ (
116
+ shopt -s nullglob
117
+ variantPatches=( "$version/$variant/"*.patch )
118
+ if [ "${#variantPatches[@]}" -eq 0 ]; then
119
+ sed -ri 's/^COPY.*patch/#&/' "$version/$variant/Dockerfile"
120
+ fi
121
+ )
122
+
123
travisEnv='\n - VERSION='"$version VARIANT=$variant$travisEnv"
124
fi
125
done
0 commit comments