Sign inSign up

oozman/laravel

By oozman

Updated over 3 years ago

Image
0

3.9K

oozman/laravel repository overview

laravel-docker

Simple Laravel docker that works! Based on alpine linux.

Features

  • Light weight, based on alpine linux.
  • Nginx
  • PHP 7.3
  • Supercronic
  • Supervisor
How to do composer install and npm/yarn install?

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> .

Tag summary

Content type

Image

Digest

Size

53.8 MB

Last updated

over 5 years ago

docker pull oozman/laravel