From a828f960255a6bca7ddbc31ecbadadf3164a3a09 Mon Sep 17 00:00:00 2001 From: "1023150697@qq.com" <1023150697@qq.com> Date: Thu, 11 Sep 2025 23:12:47 +0800 Subject: [PATCH] update --- Dockerfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a19b57d..c80e567 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,30 @@ FROM php:7.2.34-fpm-alpine3.12 -# 环境变量 ENV COMPOSER_ALLOW_SUPERUSER=1 \ - COMPOSER_HOME=/composer + COMPOSER_HOME=/composer \ + COMPOSER_MEMORY_LIMIT=-1 + +# 使用阿里云 Alpine 3.12 存档源 +RUN echo "https://mirrors.aliyun.com/alpine/v3.12/main" > /etc/apk/repositories \ + && echo "https://mirrors.aliyun.com/alpine/v3.12/community" >> /etc/apk/repositories # 安装依赖 + 常用扩展 RUN apk add --no-cache \ bash \ - git \ curl \ wget \ unzip \ libzip-dev \ + mariadb-connector-c-dev \ openssl \ openssl-dev \ pcre \ pcre-dev \ zlib \ zlib-dev \ - icu-dev \ + oniguruma-dev \ + autoconf \ + linux-headers \ build-base \ && docker-php-ext-install \ pdo_mysql \ @@ -36,8 +42,7 @@ RUN apk add --no-cache \ && curl -sS https://getcomposer.org/installer | php -- \ --install-dir=/usr/local/bin --filename=composer \ # 清理 - && apk del build-base \ + && apk del build-base autoconf linux-headers \ && rm -rf /tmp/pear ~/.pearrc /var/cache/apk/* -# 工作目录 -WORKDIR /www/wwwroot/admin +WORKDIR /var/www/html