laravel-docker
Simple Laravel docker that works! Based on alpine linux
.
Features
- Light weight, based on alpine linux.
- Nginx
- PHP 7.3
- Supercronic
- Supervisor
composer install
and npm/yarn install
?
How to do You can create your own dockerfile and then do this to prepare your dependencies.
FROM composer
COPY <your-src-folder> /app
RUN composer install
FROM node
COPY --from=0 /app /app
RUN yarn install
FROM oozman/laravel
COPY --from=1 /app /www
RUN chmod -Rf 777 /www/bootstrap/cache /www/storage
How to build?
After building your dependencies, you can start containerizing your app.
docker build -t <your-image-name> .