mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-12 21:10:32 +08:00
feat: 更新 php Dockerfile 文件
This commit is contained in:
parent
7536cf8e57
commit
95372b413a
@ -7,14 +7,15 @@ ARG CONTAINER_PACKAGE_URL
|
|||||||
|
|
||||||
RUN if [ "$CONTAINER_PACKAGE_URL" ]; then sed -i "s|http://dl-cdn.alpinelinux.org/alpine/v3.4|https://${CONTAINER_PACKAGE_URL}/alpine/v3.12|g" /etc/apk/repositories; fi
|
RUN if [ "$CONTAINER_PACKAGE_URL" ]; then sed -i "s|http://dl-cdn.alpinelinux.org/alpine/v3.4|https://${CONTAINER_PACKAGE_URL}/alpine/v3.12|g" /etc/apk/repositories; fi
|
||||||
|
|
||||||
|
|
||||||
|
ADD ./extensions/install-php-extensions /usr/local/bin/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache add tzdata \
|
RUN apk --no-cache add tzdata \
|
||||||
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||||
|
@ -9,15 +9,14 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -9,15 +9,14 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -9,15 +9,14 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -9,15 +9,14 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -9,15 +9,14 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -8,15 +8,15 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache add tzdata \
|
RUN apk --no-cache add tzdata \
|
||||||
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||||
|
@ -8,16 +8,15 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache 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
|
||||||
|
@ -8,15 +8,16 @@ 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/
|
||||||
|
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
||||||
|
|
||||||
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 \
|
||||||
|
|
||||||
ADD ./extensions/install-php-extensions /usr/local/bin/
|
|
||||||
|
|
||||||
RUN chmod uga+x /usr/local/bin/install-php-extensions
|
|
||||||
|
|
||||||
RUN apk --no-cache add tzdata \
|
RUN apk --no-cache add tzdata \
|
||||||
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
&& cp "/usr/share/zoneinfo/$TZ" /etc/localtime \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user