Files
nip/k8s/Dockerfile-nginx
Brian Cunnie 1fc970a87e Dockerfiles: Replace deprecated "maintainer" label
Also, do the `dnf install` in one step, not in three.
2022-04-22 08:11:21 -07:00

45 lines
872 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 org.opencontainers.image.authors="Brian Cunnie <brian.cunnie@gmail.com>"
RUN dnf install -y \
bind-utils \
iproute \
less \
lsof \
neovim \
net-tools \
nginx \
nmap-ncat \
procps-ng \
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