From 22397aa221d88d24a8c4b2d5efd5b7ca692d8342 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 23 Sep 2024 22:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96dockerfile=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 06a4b5f..8109db7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,6 +60,9 @@ RUN mkdir -p /var/www/html/storage RUN chmod -R 777 /var/www/html/storage VOLUME /var/www/html/storage +# 挂载主目录,也可以选择直接挂载主目录,可以把上面的几个指定的目录删掉 +# VOLUME ["/var/www/html"] + # 暴露 Nginx 端口 EXPOSE 80