mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
fix laravel.log permission
This commit is contained in:
+1
-1
@@ -13,7 +13,6 @@ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-di
|
||||
RUN docker-php-ext-install pdo pdo_mysql zip gd
|
||||
WORKDIR /app
|
||||
ADD . /app
|
||||
RUN chown -R www-data:www-data /app
|
||||
RUN chmod 755 /app/storage
|
||||
RUN chmod 777 -R /app/bootstrap/cache
|
||||
|
||||
@@ -23,5 +22,6 @@ RUN php artisan clear-compiled
|
||||
COPY wait.sh /usr/local/bin/wait.sh
|
||||
RUN chmod +x /usr/local/bin/wait.sh
|
||||
|
||||
RUN chown -R www-data:www-data /app
|
||||
CMD /usr/local/bin/wait.sh && composer update --no-scripts && composer dumpautoload && php artisan migrate && php artisan serve --host=0.0.0.0 --port=8000
|
||||
EXPOSE 8000
|
||||
|
||||
@@ -15,5 +15,6 @@ COPY Caddyfile /etc/Caddyfile
|
||||
WORKDIR /var/www
|
||||
RUN mkdir -p /var/www/public/storage
|
||||
RUN ln -sf /var/www/storage/app/public /var/www/public/storage
|
||||
RUN chown -R www-data:www-data /var/www
|
||||
|
||||
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]
|
||||
Reference in New Issue
Block a user