mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
Fix backup address not working
This commit is contained in:
parent
82170b8d50
commit
dfc6694dce
@ -20,11 +20,12 @@ ENV LINK_APK_REPO_BAK='dl-cdn.alpinelinux.org'
|
|||||||
|
|
||||||
RUN if [ "${USE_BACKUP}" = "yes" ]; then \
|
RUN if [ "${USE_BACKUP}" = "yes" ]; then \
|
||||||
echo "Using backup address..." && sleep 3s; \
|
echo "Using backup address..." && sleep 3s; \
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/'${LINK_APK_REPO}'/g' /etc/apk/repositories ; \
|
||||||
else \
|
else \
|
||||||
echo "Using original address..." && sleep 3s; \
|
echo "Using original address..." && sleep 3s; \
|
||||||
|
sed -i 's/dl-cdn.alpinelinux.org/'${LINK_APK_REPO_BAK}'/g' /etc/apk/repositories ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/'${LINK_APK_REPO}'/g' /etc/apk/repositories
|
|
||||||
|
|
||||||
# build requirements
|
# build requirements
|
||||||
RUN apk add bash wget cmake gcc g++ jq autoconf git libstdc++ linux-headers make m4 libgcc binutils ncurses > /dev/null
|
RUN apk add bash wget cmake gcc g++ jq autoconf git libstdc++ linux-headers make m4 libgcc binutils ncurses > /dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user