Skip to content

Commit 92e0e1a

Browse files
houaiaiclaude
andcommitted
fix: 保留 /var/cache/apk 目录结构
- 调整 Dockerfile 清理逻辑,删除后重新创建目录 - 移除 install.sh 中的 /var/cache/apk 清理操作 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b46570e commit 92e0e1a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ RUN apk add --no-cache --virtual .build-deps \
2121
&& sh install.sh \
2222
&& rm -rf /tmp/extension \
2323
&& apk del .build-deps \
24-
&& rm -rf /var/cache/apk/* /tmp/* /root/.pearrc /usr/local/include/php
24+
&& rm -rf /var/cache/apk /tmp/* /root/.pearrc /usr/local/include/php \
25+
&& mkdir -p /var/cache/apk
2526

2627
# Add Composer (with cache cleanup)
2728
RUN curl -sS https://getcomposer.org/installer | php \

extension/install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,5 +682,4 @@ fi
682682

683683
# Cleanup build artifacts and caches
684684
echo "---------- Cleanup ----------"
685-
rm -rf /tmp/* /var/cache/apk/* /root/.pearrc /usr/local/include/php
686685
docker-php-source delete

0 commit comments

Comments
 (0)