mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-04 07:16:33 +08:00

To make room for the k-v.io HTML website, we rename the `document_root` of the sslip.io website to the more explicit `document_root_sslip.io`.
39 lines
818 B
Plaintext
39 lines
818 B
Plaintext
#
|
|
# cunnie/sslip.io-nginx
|
|
#
|
|
# sslip.io nginx Dockerfile
|
|
#
|
|
# Dockerfile of an nginx server that serves the web
|
|
# pages of the sslip.io domain.
|
|
#
|
|
# Typical start command:
|
|
#
|
|
# docker run --rm -p 8080:80 cunnie/sslip.io-nginx
|
|
#
|
|
# To test from host:
|
|
#
|
|
# curl -I http://localhost:8080
|
|
#
|
|
FROM fedora AS sslip.io-nginx
|
|
|
|
LABEL maintainer="brian.cunnie@gmail.com"
|
|
|
|
RUN dnf install -y iproute bind-utils neovim
|
|
|
|
RUN dnf install -y procps-ng nmap-ncat net-tools lsof less
|
|
|
|
RUN dnf install -y nginx
|
|
|
|
RUN mv /usr/share/nginx/html /usr/share/nginx/html-orig
|
|
|
|
COPY document_root_sslip.io /usr/share/nginx/html
|
|
|
|
ENTRYPOINT [ "/usr/sbin/nginx", "-g", "daemon off;" ]
|
|
|
|
# for testing:
|
|
# ENTRYPOINT /bin/bash
|
|
|
|
# nginx listens on port 80
|
|
# The `EXPOSE` directive doesn't do much in our case. We use it for documentation.
|
|
EXPOSE 80/tcp
|