Skip to content

outrunthewolf/dockerfile-app-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

dockerfile-app-laravel

Docker Container for a laravel nginx vhost, an extension of https://github.com/outrunthewolf/dockerfile-base-nginx

Requiries

Docker >= 0.6.x

Usage

Clone, pull or download the repository. At the same level as the dockerfile build your container with whatever name you'd like:

sudo docker build -t app/laravel .

Once you've got a completed image, you can run the container outright and pipe in your local laravel files:

Daemon

# Daemon
sudo docker run -d -v /home/user/laravel-app app/laravel:/home/laravel/public_html app/laravel

Interactive

sudo docker run -i -t -v /home/user/laravel-app app/laravel:/home/laravel/public_html base/nginx /bin/bash

Dockerfile

Or you can couple the built container as a base for another application within its Dockerfile

# Dockerfile example

# Set the new application to inherit this container
FROM app/laravel
...

About

Extended Dockerfile for an nginx laravel application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages