parent
235260427d
commit
2e85e73991
|
|
@ -5,10 +5,7 @@ FROM registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74
|
||||||
# 这里复制了这个项目的所有
|
# 这里复制了这个项目的所有
|
||||||
|
|
||||||
COPY . /var/www
|
COPY . /var/www
|
||||||
RUN if [ -f /etc/apt/sources.list ]; then sed -i's/http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian/http:\/\/deb.debian.org\/debian/g' /etc/apt/sources.list; else echo "sources.list not found"; fi \
|
RUN ls -al /var/www
|
||||||
&& apt-get update && apt-get install -y tree \
|
|
||||||
&& ls -al /var/www \
|
|
||||||
&& tree -L 2 /var/www
|
|
||||||
|
|
||||||
|
|
||||||
# CMD不同于RUN,CMD用于指定在容器启动时所要执行的命令,而RUN用于指定镜像构建时所要执行的命令
|
# CMD不同于RUN,CMD用于指定在容器启动时所要执行的命令,而RUN用于指定镜像构建时所要执行的命令
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue