fix: ap5
continuous-integration/drone/tag Build is failing Details

develop v0.34
Unshift 2025-09-26 11:31:41 +08:00
parent 06d067616e
commit 935d860570
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,8 @@ steps:
from_secret: aliyun_acr_password
dockerfile: docker/Dockerfile
tags: ${DRONE_TAG}
after_script:
- ls -a
# - name: deploy-pull-project
# depends_on:
# - deploy-push-images

View File

@ -4,11 +4,13 @@ FROM registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74
# 要想复制其他文件 就必须把dockerfile和其他文件放一起
# 这里复制了这个项目的所有
COPY . /var/www
RUN apt-get update && apt-get install -y tree \
COPY. /var/www
RUN sed -i's/http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian/http:\/\/deb.debian.org\/debian/g' /etc/apt/sources.list \
&& apt-get update && apt-get install -y tree \
&& ls -al /var/www \
&& tree -L 2 /var/www
# CMD不同于RUNCMD用于指定在容器启动时所要执行的命令而RUN用于指定镜像构建时所要执行的命令
# CMD只运行出现一次 多次出现只会执行最后一个
# 启动 hyperf 框架 并且 启动Nginx 服务器