This Docker image can be used as a starting point for Laravel applications based upon PHP >=8.0.
In you own Dockerfile
, you might want to use the following:
FROM dreitier/php-laravel:latest
WORKDIR /var/www/app
COPY . ./
RUN php /usr/local/bin/composer.phar install
RUN npm install
# set recursive write permissions to storage folder
RUN chmod -R uag+w /var/www/app/storage
RUN rm -rf /var/www/html \
&& ln -s /var/www/app/public/ /var/www/html
git tag php-X.Y-laravel-X.Y
git push origin main
git push origin --tags