Files
nip/k8s/Dockerfile-nginx
Brian Cunnie 4164af4e9c k8s: introduce nginx Dockerfile
We now introduce a second Dockerfile, `Dockerfile-nginx`, to be used for
the web assets for sslip.io.

It does not run TLS; we assume that the load balancer will take care of
that.

We also gussied-up the PowerDNS Dockerfile with minor changes.
2020-07-05 15:49:42 -07:00

36 lines
776 B
Plaintext

# 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
RUN dnf install -y nginx
RUN mv /usr/share/nginx/html /usr/share/nginx/html-orig
COPY document_root /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