Skip to content

Commit 4a3fbcd

Browse files
author
root
committed
使用国内源
1 parent d82ac0f commit 4a3fbcd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM registry.jxit.net.cn:5000/alpine:3.19.1 AS builder
22

3-
RUN apk update && \
3+
RUN sed -i '[email protected]@mirrors.tencent.com@g' /etc/apk/repositories && \
4+
apk update && \
45
apk add tcpdump vim curl bash build-base gcc zlib-dev tzdata && \
56
apk add automake autoconf libtool make curl-dev libxml2-dev pcre-dev && \
67
apk add git linux-headers subversion libmaxminddb-dev geoip-dev yajl-dev pcre2-dev && \
@@ -27,7 +28,8 @@ RUN cd /uniwaf && mkdir lib obj bin && make && make install
2728

2829
FROM registry.jxit.net.cn:5000/alpine:3.19.1
2930

30-
RUN apk update && \
31+
RUN sed -i '[email protected]@mirrors.tencent.com@g' /etc/apk/repositories && \
32+
apk update && \
3133
apk add --no-cache tcpdump geoip vim curl libxml2 pcre zlib libstdc++ yajl libmaxminddb tzdata && \
3234
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
3335
echo "Asia/Shanghai" > /etc/timezone

0 commit comments

Comments
 (0)