mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-10 07:47:29 -05:00
27 lines
569 B
Docker
27 lines
569 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/
|