cd 项目路径
mkdir -p ./storage/framework/cache
mkdir -p ./storage/framework/sessions
mkdir -p ./storage/framework/views
Dockerfile
FROM vendor:7.4prod
COPY . /apps/
RUN mkdir -p /apps/storage/framework/laravel-excel && chown www-data:www-data /apps/storage/framework && chown www-data:www-data /apps/storage/framework/laravel-excel && cd /apps && chmod 777 storage
放到RUN 后面
本文摘自 :https://blog.51cto.com/u