mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-20 20:10:31 +08:00
fix: 解决 php 8.2.5 构建失败的问题
This commit is contained in:
parent
43ef4b1205
commit
a8cb09145c
@ -5,21 +5,20 @@ ARG TZ
|
|||||||
ARG PHP_EXTENSIONS
|
ARG PHP_EXTENSIONS
|
||||||
ARG CONTAINER_PACKAGE_URL
|
ARG CONTAINER_PACKAGE_URL
|
||||||
|
|
||||||
|
|
||||||
RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi
|
RUN if [ $CONTAINER_PACKAGE_URL ] ; then sed -i "s/dl-cdn.alpinelinux.org/${CONTAINER_PACKAGE_URL}/g" /etc/apk/repositories ; fi
|
||||||
|
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
ADD ./extensions/install-php-extensions /usr/local/bin/
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
|
RUN apk --no-cache add tzdata
|
||||||
|
|
||||||
COPY ./extensions /tmp/extensions
|
COPY ./extensions /tmp/extensions
|
||||||
WORKDIR /tmp/extensions
|
WORKDIR /tmp/extensions
|
||||||
RUN chmod +x install.sh \
|
RUN chmod +x install.sh \
|
||||||
&& sh install.sh \
|
&& sh install.sh \
|
||||||
&& rm -rf /tmp/extensions \
|
&& rm -rf /tmp/extensions \
|
||||||
|
|
||||||
|
RUN apk add tzdata \
|
||||||
RUN apk --no-cache add tzdata \
|
|
||||||
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||||
&& echo "$TZ" > /etc/timezone
|
&& echo "$TZ" > /etc/timezone
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user