Files
trunk-server/nginx-proxy/Dockerfile
2025-07-12 10:43:04 -04:00

31 lines
662 B
Docker

# Create proxy container for www.example.com
#
# docker build -t nginx-proxy .
FROM nginx
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"]