forked from wifidog/wifidog-auth-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to Laravel framework 6.20.22
- Loading branch information
Showing
32 changed files
with
5,568 additions
and
3,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
Dockerfile | ||
.dockerignore | ||
.git | ||
.env | ||
.gitignore | ||
.git/ | ||
.idea/ | ||
bootstrap/cache/* | ||
database/*.sqlite | ||
laradock/ | ||
node_modules/ | ||
storage/app/* | ||
storage/framework/cache/* | ||
storage/framework/sessions/* | ||
storage/framework/views/* | ||
storage/logs/* | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ trim_trailing_whitespace = true | |
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,44 @@ | ||
FROM php:7.3-apache | ||
MAINTAINER sinkcup <[email protected]> | ||
FROM php:8.0-apache | ||
|
||
WORKDIR /var/www/laravel | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ | ||
&& apt-get install -y \ | ||
cron \ | ||
icu-devtools \ | ||
jq \ | ||
libfreetype6-dev libicu-dev libjpeg62-turbo-dev libpng-dev libsasl2-dev libssl-dev libwebp-dev libxpm-dev libzip-dev \ | ||
nodejs \ | ||
unzip \ | ||
zlib1g-dev | ||
zlib1g-dev \ | ||
&& apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \ | ||
&& yes '' | pecl install redis \ | ||
&& docker-php-ext-configure gd --with-freetype-dir --with-gd --with-jpeg-dir --with-png-dir --with-webp-dir --with-xpm-dir --with-zlib-dir \ | ||
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp --with-xpm \ | ||
&& docker-php-ext-install gd intl pdo_mysql zip \ | ||
&& docker-php-ext-enable opcache redis | ||
RUN apt-get clean \ | ||
&& apt-get autoclean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
WORKDIR /var/www/laravel | ||
|
||
COPY composer.json /var/www/laravel/ | ||
COPY composer.lock /var/www/laravel/ | ||
COPY composer.json composer.lock ./ | ||
RUN composer install --no-autoloader --no-scripts --no-dev | ||
|
||
# Compiling Assets. uncomment these lines after you install Laravel UI | ||
COPY package.json /var/www/laravel/ | ||
COPY package-lock.json /var/www/laravel/ | ||
COPY package.json package-lock.json /var/www/laravel/ | ||
RUN npm install | ||
COPY resources/js /var/www/laravel/resources/js | ||
COPY resources/sass /var/www/laravel/resources/sass | ||
COPY webpack.mix.js /var/www/laravel/ | ||
RUN npm run production | ||
|
||
COPY app /var/www/laravel/app | ||
COPY artisan /var/www/laravel/artisan | ||
COPY bootstrap /var/www/laravel/bootstrap | ||
COPY config /var/www/laravel/config | ||
COPY database /var/www/laravel/database | ||
COPY public /var/www/laravel/public | ||
COPY resources /var/www/laravel/resources | ||
COPY routes /var/www/laravel/routes | ||
COPY server.php /var/www/laravel/server.php | ||
COPY storage /var/www/laravel/storage | ||
RUN composer install --optimize-autoloader --no-dev | ||
|
||
RUN rm -f public/storage \ | ||
&& php artisan storage:link | ||
|
||
COPY docker/ / | ||
RUN a2enmod rewrite headers \ | ||
&& a2ensite laravel \ | ||
&& a2dissite 000-default | ||
|
||
COPY . /var/www/laravel/ | ||
COPY . /var/www/laravel | ||
RUN composer install --optimize-autoloader --no-dev \ | ||
&& npm run production | ||
|
||
RUN chown www-data:www-data bootstrap/cache \ | ||
&& chown -R www-data:www-data storage/ | ||
&& chown -R www-data:www-data storage/ \ | ||
&& chmod +x /usr/local/bin/docker-laravel-entrypoint | ||
|
||
CMD ["docker-laravel-entrypoint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.