blob: d9f18c7bdda5a8586d9541c2e6778d873ecf13b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM nginx:1.13.3
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y iputils-ping procps openssl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /etc/nginx/
COPY proxy/ssl.conf /etc/ssl/openssl.cnf
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-config /etc/ssl/openssl.cnf -extensions v3_ca \
-keyout cert.key -out cert.crt
COPY proxy/default.conf /etc/nginx/conf.d/default.conf
|