mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 09:30:10 +08:00
[fix] docker does not build on php:alpine
This commit is contained in:
parent
b3204358a5
commit
2782e2af42
@ -26,8 +26,14 @@ ENV USER_NAME='' \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
||||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||||
|
|
||||||
|
# https://github.com/php/php-src/issues/8681
|
||||||
|
RUN apk add --no-cache linux-headers
|
||||||
|
|
||||||
RUN docker-php-ext-install sockets
|
RUN docker-php-ext-install sockets
|
||||||
|
|
||||||
#RUN if [ "${CN}" = true ]; then export REPO_URL="https://github.com.cnpmjs.org"; fi
|
#RUN if [ "${CN}" = true ]; then export REPO_URL="https://github.com.cnpmjs.org"; fi
|
||||||
@ -47,8 +53,6 @@ RUN set -x; \
|
|||||||
#ENV PATH=/root/.composer/vendor/bin:$PATH
|
#ENV PATH=/root/.composer/vendor/bin:$PATH
|
||||||
|
|
||||||
RUN apk add --no-cache git && \
|
RUN apk add --no-cache git && \
|
||||||
# https://github.com/php/php-src/issues/8681
|
|
||||||
apk add --no-cache linux-headers && \
|
|
||||||
git clone ${REPO_URL}/lkeme/BiliHelper-personal.git --depth=1 /app && \
|
git clone ${REPO_URL}/lkeme/BiliHelper-personal.git --depth=1 /app && \
|
||||||
cp -f /app/docker/entrypoint.sh /usr/local/bin/entrypoint.sh && \
|
cp -f /app/docker/entrypoint.sh /usr/local/bin/entrypoint.sh && \
|
||||||
chmod 777 /usr/local/bin/entrypoint.sh && \
|
chmod 777 /usr/local/bin/entrypoint.sh && \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user