mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-10-31 09:50:47 +08:00
fix(stack): 开发模式移除VOLUME消除runtime遮蔽,run.sh权限与su写法修复
- docker-dev/docker-dev-sync 删除 4 行 VOLUME:匿名卷会遮蔽整目录 bind mount 的宿主 runtime(已实证:宿主看不到容器日志) - run.sh 统一四目录 777 + umask + 正确 su 写法(-s /bin/sh,www-data 为 nologin) - serve/full/author 生产模式 VOLUME 保留作 docker run -v 兜底
This commit is contained in:
@@ -84,10 +84,8 @@ COPY source/stack/docker-dev-sync/source/docker/zzz-xdebug.ini /usr/local/etc/ph
|
||||
# Create source mount point (host code staging area)
|
||||
RUN mkdir -p /var/www/source
|
||||
|
||||
VOLUME /var/www/html/runtime
|
||||
VOLUME /var/www/html/public/storage
|
||||
VOLUME /var/www/html/public/build
|
||||
VOLUME /var/www/html/storage
|
||||
# 同步模式:代码 rsync 到容器本地,runtime 由 run.sh 启动时 chmod 777 重建,
|
||||
# sync.sh 已排除 runtime;匿名卷在容器重建后并不延续,故不声明 VOLUME
|
||||
|
||||
# Expose Nginx port
|
||||
EXPOSE 8000
|
||||
|
||||
Reference in New Issue
Block a user