docker-compose 如何build

17 2026-12-06 19:01 2026-12-06 20:07

构建时若需忽略缓存、强制重新构建,可加 --no-cache:

 

docker compose build --no-cache

docker-compose up -d --build

 

chown -R 1000:1000 public

chmod -R a+r public

 

必须到Dockerfile里面

RUN chmod -R a+rX /app/public

 

 

 

 

 

 

全部评论

·