fix: ap3
continuous-integration/drone/tag Build is passing Details

develop v0.31
Unshift 2025-09-26 11:18:25 +08:00
parent d0be313001
commit 5c984bd78d
1 changed files with 4 additions and 12 deletions

View File

@ -4,18 +4,10 @@ FROM registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74
# 要想复制其他文件 就必须把dockerfile和其他文件放一起
# 这里复制了这个项目的所有
#COPY . /var/www
RUN apt-get update && apt-get install -y pv
# 带进度显示的复制操作
RUN tar -cf - . | pv -s $(du -sb . | cut -f1) | tar -xf - -C /var/www
# 验证复制结果
RUN echo "====== 复制完成,目录内容如下 ======" && \
ls -alh /var/www && \
echo "====== 文件数量统计 ======" && \
find /var/www -type f | wc -l
COPY . /var/www
RUN apt-get update && apt-get install -y tree \
&& ls -al /var/www \
&& tree -L 2 /var/www
# CMD不同于RUNCMD用于指定在容器启动时所要执行的命令而RUN用于指定镜像构建时所要执行的命令
# CMD只运行出现一次 多次出现只会执行最后一个