mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-25 09:38:47 +08:00
fix: 解决 php 8.2.5 构建失败的问题
This commit is contained in:
parent
43ef4b1205
commit
a8cb09145c
@ -5,27 +5,26 @@ ARG TZ
|
||||
ARG PHP_EXTENSIONS
|
||||
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
|
||||
|
||||
|
||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||
|
||||
RUN apk --no-cache add tzdata
|
||||
|
||||
COPY ./extensions /tmp/extensions
|
||||
WORKDIR /tmp/extensions
|
||||
RUN chmod +x install.sh \
|
||||
&& sh install.sh \
|
||||
&& rm -rf /tmp/extensions \
|
||||
|
||||
|
||||
RUN apk --no-cache add tzdata \
|
||||
RUN apk add tzdata \
|
||||
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||
&& echo "$TZ" > /etc/timezone
|
||||
|
||||
|
||||
# Fix: https://github.com/docker-library/php/issues/240
|
||||
RUN apk add gnu-libiconv libstdc++ --no-cache --repository http://${CONTAINER_PACKAGE_URL}/alpine/edge/community/ --allow-untrusted
|
||||
RUN apk add gnu-libiconv libstdc++ --no-cache --repository http://${CONTAINER_PACKAGE_URL}/alpine/edge/community/ --allow-untrusted
|
||||
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
|
||||
|
||||
|
||||
@ -38,4 +37,4 @@ ENV COMPOSER_HOME=/tmp/composer
|
||||
RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data
|
||||
|
||||
|
||||
WORKDIR /www
|
||||
WORKDIR /www
|
||||
|
Loading…
Reference in New Issue
Block a user