jxdn123 commited on
Commit
0ef8091
·
verified ·
1 Parent(s): 3530503

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -49,6 +49,12 @@ EOF
49
  RUN sed -i 's/^user\s/#user /g' /etc/nginx/nginx.conf && \
50
  sed -i 's|pid\s*/var/run/nginx.pid;|pid /tmp/nginx.pid;|g' /etc/nginx/nginx.conf
51
 
 
 
 
 
 
 
52
  # 创建启动脚本
53
  RUN cat > /start.sh <<'EOF'
54
  #!/bin/sh
 
49
  RUN sed -i 's/^user\s/#user /g' /etc/nginx/nginx.conf && \
50
  sed -i 's|pid\s*/var/run/nginx.pid;|pid /tmp/nginx.pid;|g' /etc/nginx/nginx.conf
51
 
52
+ # 在 RUN cat > /start.sh 之前添加
53
+ RUN echo "Checking directory structure..." && \
54
+ ls -la /usr/share/nginx/html || echo "No html dir" && \
55
+ ls -la /app || echo "No app dir" && \
56
+ find / -name "index.html" 2>/dev/null | head -5 || echo "No index.html found"
57
+
58
  # 创建启动脚本
59
  RUN cat > /start.sh <<'EOF'
60
  #!/bin/sh