mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2025-12-06 13:39:42 +01:00
Refactoring
This commit is contained in:
24
README.md
24
README.md
@@ -1,5 +1,4 @@
|
||||

|
||||

|
||||
[](https://github.com/jkaninda/nginx-php-fpm/actions/workflows/build.yml)
|
||||

|
||||

|
||||
|
||||
@@ -90,6 +89,27 @@ services:
|
||||
docker-compose up -d
|
||||
|
||||
```
|
||||
## Build from base
|
||||
Dockerfile
|
||||
```Dockerfile
|
||||
FROM jkaninda/nginx-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
|
||||
|
||||
```
|
||||
|
||||
|
||||
## Nginx custom config:
|
||||
### Enable custom nginx config files
|
||||
> /var/www/html/conf/nginx/nginx.conf
|
||||
|
||||
Reference in New Issue
Block a user