mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-29 08:16:12 +08:00
25 lines
574 B
Docker
25 lines
574 B
Docker
ARG PHP_IMAGE
|
|
FROM ${PHP_IMAGE}
|
|
|
|
ARG TZ
|
|
ARG PHP_EXTENSIONS
|
|
ARG CONTAINER_PACKAGE_URL
|
|
|
|
COPY ./extensions /tmp/extensions
|
|
WORKDIR /tmp/extensions
|
|
RUN chmod +x install.sh \
|
|
&& sh install.sh \
|
|
&& rm -rf /tmp/extensions
|
|
|
|
|
|
# Install composer and change it's cache home
|
|
RUN curl -o /usr/bin/composer https://mirrors.aliyun.com/composer/composer.phar \
|
|
&& chmod +x /usr/bin/composer
|
|
ENV COMPOSER_HOME=/tmp/composer
|
|
|
|
|
|
# php image's www-data user uid & gid are 82, change them to 1000 (primary user)
|
|
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
|
|
|
|
|
|
WORKDIR /www |