Sign inSign up

caseyfw/apache

By caseyfw

Updated over 8 years ago

Super basic Apache2 image based on Alpine.

Image
0

515

caseyfw/apache repository overview

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

Tag summary

Content type

Image

Digest

Size

4.3 MB

Last updated

over 8 years ago

docker pull caseyfw/apache