Skip to content

Commit

Permalink
Remove laravel folder and add composer create to create a fresh proje…
Browse files Browse the repository at this point in the history
…ct; Updated README.md with updated links
  • Loading branch information
antonioanerao committed Apr 2, 2023
1 parent 858f393 commit 606b7be
Show file tree
Hide file tree
Showing 85 changed files with 9 additions and 11,157 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ VOLUME [ "/laravel" ]
WORKDIR /laravel
ENV ACCEPT_EULA=Y

COPY --chown=www-data:www-data laravel /laravel

RUN ln -fs /usr/share/zoneinfo/America/Rio_Branco /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
apt update && \
Expand Down Expand Up @@ -74,11 +72,9 @@ RUN ln -fs /usr/share/zoneinfo/America/Rio_Branco /etc/localtime && \
printf "# priority=30\nservice php8.2-fpm start\n" > /docker-entrypoint.d/30-php8.2-fpm.sh && \
chmod 755 /docker-entrypoint.d/30-php8.2-fpm.sh && \
chmod 755 /docker-entrypoint.d/30-php8.2-fpm.sh && \
composer create-project laravel/laravel . && \
chgrp -R www-data /laravel/storage /laravel/bootstrap/cache /laravel/storage/logs && \
chmod -R ug+rwx /laravel/storage /laravel/bootstrap/cache /laravel/storage/logs && \
composer update && \
cp .env.example .env && \
php artisan key:generate
chmod -R ug+rwx /laravel/storage /laravel/bootstrap/cache /laravel/storage/logs

COPY config_cntr/php.ini /etc/php/8.2/fpm/php.ini
COPY config_cntr/www.conf /etc/php/8.2/fpm/pool.d/www.conf
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#### Nginx Version
1.23.3

#### Laravel Version
9.47.0

#### PHP Version
8.2.1
8.2.4

#### NODE Version
16.x

#### PHP Extensions
php8.2-fpm
Expand Down Expand Up @@ -36,14 +36,13 @@
### How to run

#### Clone this repo
$ git clone https://github.com/antonioanerao/dockerfile-laravel-9-47-0.git
$ git clone https://github.com/antonioanerao/dockerfile-laravel.git

#### CD to the repo folder
$ cd dockerfile-laravel-9-47-0
$ cd dockerfile-laravel

#### Build the docker image
$ docker build -t laravel:9.47.0 .
* You might need to run a composer install to create the vendor folder
$ docker build -t laravel .

#### Do you prefer a Docker Image instead?
https://hub.docker.com/r/antonioanerao/laravel
18 changes: 0 additions & 18 deletions laravel/.editorconfig

This file was deleted.

58 changes: 0 additions & 58 deletions laravel/.env.example

This file was deleted.

11 changes: 0 additions & 11 deletions laravel/.gitattributes

This file was deleted.

18 changes: 0 additions & 18 deletions laravel/.gitignore

This file was deleted.

66 changes: 0 additions & 66 deletions laravel/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions laravel/app/Console/Kernel.php

This file was deleted.

50 changes: 0 additions & 50 deletions laravel/app/Exceptions/Handler.php

This file was deleted.

13 changes: 0 additions & 13 deletions laravel/app/Http/Controllers/Controller.php

This file was deleted.

67 changes: 0 additions & 67 deletions laravel/app/Http/Kernel.php

This file was deleted.

Loading

0 comments on commit 606b7be

Please sign in to comment.