Skip to content

caseyfw/docker-apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

caseyfw/apache

Super basic Apache2 image based on Alpine.

Usage

Either copy or volume your content into /web when running - e.g.

docker run --volume ${PWD}:/web --publish 80:8080 caseyfw/apache

The $WEB_PATH environment variable can be used to set the sub-path your web root is served from. This should start with a slash - e.g. /foo/bar.

docker run -v ${PWD}:/web -p 80:8080 -e "WEB_PATH=/foo/bar" caseyfw/apache

This will result in your content being served at http://localhost/foo/bar/.

Note that this image uses port 8080 by default, allowing it to be run by a non-root user.

docker run -v ${PWD}:/web -p 80:8080 -u 1000 caseyfw/apache

About

Super basic Apache2 image based on Alpine.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published