Created
March 30, 2016 04:27
-
-
Save arulrajnet/ab5de5b57f4a796ba8555802619a019f to your computer and use it in GitHub Desktop.
Docker container for lighttpd on port 8080.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.3 | |
| # referred from https://hub.docker.com/r/sebp/lighttpd/ | |
| MAINTAINER Arul <me@arulraj.net> | |
| RUN apk add --update lighttpd \ | |
| && rm -rf /var/cache/apk/* \ | |
| && sed -i.bak "s/server.document-root/#server.document-root/g" /etc/lighttpd/lighttpd.conf \ | |
| && echo server.document-root = var.basedir >> /etc/lighttpd/lighttpd.conf \ | |
| && echo server.port = 8080 >> /etc/lighttpd/lighttpd.conf \ | |
| && echo server.network-backend = \"writev\" >> /etc/lighttpd/lighttpd.conf | |
| EXPOSE 8080 | |
| VOLUME /var/www/localhost | |
| WORKDIR /var/www/localhost | |
| ENTRYPOINT ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build this as container
Download the dockerfile.
The size of the image is
6.161 MBUsing that container
Mount your files into
/var/www/localhostNow you can access in http://localhost:8080/