NginX
Run static site
docker run -it --rm --detach --publish 8080:80 \ --volume ~/site:/usr/share/nginx/html nginx
The root is usr/share/nginx/html/index.html
Build an image
FROM nginx
COPY ./page.html /usr/share/nginx/html/index.html
# docker build . --tag dehasi/static-site
# docker run --rm -it --detach --publish 8081:80 --name static-site dehasi/static-site
Configuration
The config is in /etc/nginx/nginx.conf
and /etc/nginx/conf.d/default.conf
.