1
0
mirror of https://github.com/ArcticFoxes-net/Signal-TLS-Proxy synced 2024-11-08 21:31:33 -05:00
Signal-TLS-Proxy/nginx-terminate/Dockerfile

23 lines
768 B
Docker
Raw Permalink Normal View History

2021-01-28 13:34:53 -05:00
FROM ubuntu:20.04
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y wget libpcre3-dev build-essential libssl-dev zlib1g-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt
2021-02-04 12:14:08 -05:00
RUN wget https://nginx.org/download/nginx-1.18.0.tar.gz && \
2021-01-28 13:34:53 -05:00
tar -zxvf nginx-1.*.tar.gz && \
cd nginx-1.* && \
./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --with-ipv6 --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module && \
make && make install && \
cd .. && rm -rf nginx-1.*
RUN adduser --system --no-create-home --disabled-login --disabled-password --group nginx
WORKDIR /
EXPOSE 443
CMD ["/opt/nginx/sbin/nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]