Skip to content

Simple Laravel docker that works! Based on alpine linux.

Notifications You must be signed in to change notification settings

matthewsuan/laravel-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Laravel docker that works! Based on alpine linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%