Merge pull request #39 from jkaninda/develop

Develop
This commit is contained in:
2023-01-04 18:31:24 +02:00
committed by GitHub

View File

@@ -1,5 +1,4 @@
![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/jkaninda/laravel-php-fpm?style=flat-square)
![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/jkaninda/laravel-php-fpm?style=flat-square)
[![Build](https://github.com/jkaninda/laravel-php-fpm/actions/workflows/build.yml/badge.svg)](https://github.com/jkaninda/laravel-php-fpm/actions/workflows/build.yml)
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/jkaninda/laravel-php-fpm?style=flat-square)
![Docker Pulls](https://img.shields.io/docker/pulls/jkaninda/laravel-php-fpm?style=flat-square)
@@ -172,6 +171,25 @@ volumes:
```sh
docker-compose up -d
```
## Build from base
Dockerfile
```Dockerfile
FROM jkaninda/laravel-php-fpm:8.1
# Copy laravel project files
COPY . /var/www/html
# Storage Volume
VOLUME /var/www/html/storage
WORKDIR /var/www/html
# Custom cache invalidation
ARG CACHEBUST=1
RUN composer install
RUN chown -R www-data:www-data /var/www/html/storage
RUN chown -R www-data:www-data /var/www/html/bootstrap/cache
```
## Supervisord
### Add supervisor process file in