fix 404 error for storage

This commit is contained in:
Jack Goh
2018-07-27 12:37:10 +08:00
parent 5bb7a2d652
commit 3afa7bd539
+1 -2
View File
@@ -10,10 +10,9 @@ RUN curl --silent --show-error --fail --location \
&& /usr/bin/caddy -version \
&& docker-php-ext-install mbstring pdo pdo_mysql
ADD . /var/www
RUN rm -rf /var/www/public/storage && php artisan storage:link
COPY Caddyfile /etc/Caddyfile
WORKDIR /var/www
RUN php artisan storage:link
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]