From fb012ae683ced6aa16cb36e7cdde48b8d2dedc2b Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Mon, 29 Oct 2018 15:39:22 +0000 Subject: [PATCH] tls v1.3 testing --- docker/nginx/Dockerfile.future | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker/nginx/Dockerfile.future diff --git a/docker/nginx/Dockerfile.future b/docker/nginx/Dockerfile.future new file mode 100644 index 00000000..b1142396 --- /dev/null +++ b/docker/nginx/Dockerfile.future @@ -0,0 +1,26 @@ +FROM alpine + +# Include dist +ADD dist/ /root/dist/ + +# Get and install dependencies & packages +RUN rm -rf /etc/ssl/openssl.cnf && \ + apk add --no-cache -U -X http://dl-3.alpinelinux.org/alpine/edge/testing/ \ + nginx \ + nginx-mod-http-headers-more \ + openssl1.1 || : && \ + +# Setup configs + mkdir -p /run/nginx && \ + rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \ + cp /root/dist/conf/nginx.conf /etc/nginx/ && \ + cp -R /root/dist/conf/ssl /etc/nginx/ && \ + cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \ + cp -R /root/dist/html/ /var/lib/nginx/ && \ + +# Clean up + rm -rf /root/* && \ + rm -rf /var/cache/apk/* + +# Start nginx +CMD exec nginx -g 'daemon off;'