Files
trunk-server/nginx-proxy/Dockerfile
2026-11-18 22:01:55 -05:00

33 lines
818 B
Docker

# Create proxy container for www.example.com
#
# docker build -t nginx-proxy .
# Pinned so cached builds can't silently reuse an older base image.
# 1.31.9 fixes the Nov 2026 advisories (CVE-2026-123007, -123633, -118899, ...).
FROM nginx:1.31.9
ARG STAGE
MAINTAINER Luke Berndt <lukekb@gmail.com>
# Set timezone
RUN echo "America/New_York" > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata
# Install wget and install/updates certificates
RUN apt-get update \
&& apt-get install -y -q --no-install-recommends \
ca-certificates \
wget \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Add main NGINX config
COPY *.conf /etc/nginx/
# Add virtual hosts
COPY ${STAGE}/vhosts/ /etc/nginx/conf.d/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]