Optimize chown
This commit is contained in:
parent
17cfb7dfd7
commit
dcf33f56cf
1 changed files with 3 additions and 4 deletions
|
|
@ -59,9 +59,8 @@ RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||||
COPY --from=frontend-builder /app/public/build/ ./public/build/
|
COPY --from=frontend-builder /app/public/build/ ./public/build/
|
||||||
|
|
||||||
# Set proper permissions
|
# Set proper permissions
|
||||||
RUN chown -R www-data:www-data /var/www/html \
|
RUN chown -R www-data:www-data storage bootstrap/cache public/build \
|
||||||
&& chmod -R 755 /var/www/html/storage \
|
&& chmod -R 755 storage bootstrap/cache
|
||||||
&& chmod -R 755 /var/www/html/bootstrap/cache
|
|
||||||
|
|
||||||
# Create a startup script
|
# Create a startup script
|
||||||
RUN echo '#!/bin/sh' > /usr/local/bin/start-app \
|
RUN echo '#!/bin/sh' > /usr/local/bin/start-app \
|
||||||
|
|
@ -81,4 +80,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD php artisan --version || exit 1
|
CMD php artisan --version || exit 1
|
||||||
|
|
||||||
# Start the application
|
# Start the application
|
||||||
CMD ["/usr/local/bin/start-app"]
|
CMD ["/usr/local/bin/start-app"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue