Skip to content

Commit a2d9753

Browse files
author
julian
committed
modify apk repository to aliyun
1 parent 29a0466 commit a2d9753

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM alpine:3.8
2-
3-
LABEL maintainer="Elisiano Petrini <[email protected]>"
2+
MAINTAINER JulianWang <[email protected]>
43

54
ENV NGINX_VERSION 1.15.3
65

6+
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
77
RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
88
&& CONFIG="\
99
--prefix=/etc/nginx \
@@ -94,7 +94,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
9494
pgp.mit.edu \
9595
; do \
9696
echo "Fetching GPG key $GPG_KEYS from $server"; \
97-
gpg --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$GPG_KEYS" && found=yes && break; \
97+
gpg --keyserver "$server" --keyserver-options timeout=20 --recv-keys "$GPG_KEYS" && found=yes && break; \
9898
done; \
9999
test -z "$found" && echo >&2 "error: failed to fetch GPG key $GPG_KEYS" && exit 1; \
100100
gpg --batch --verify nginx.tar.gz.asc nginx.tar.gz \

0 commit comments

Comments
 (0)