FROM archlinux:latest EXPOSE 8080 RUN pacman -Syyu --noconfirm RUN pacman -S base-devel glibc gcc-libs --noconfirm COPY nginx /nginx WORKDIR /nginx RUN auto/configure \ --with-debug \ --with-http_ssl_module \ --with-cc-opt=-pg RUN make RUN make install COPY nginx.conf / WORKDIR / RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key0.pem \ -out cert0.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key1.pem \ -out cert1.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key2.pem \ -out cert2.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key3.pem \ -out cert3.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key4.pem \ -out cert4.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key5.pem \ -out cert5.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key6.pem \ -out cert6.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key7.pem \ -out cert7.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key8.pem \ -out cert8.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" RUN openssl req -x509 \ -newkey rsa:4096 \ -keyout key9.pem \ -out cert9.pem \ -sha256 -nodes \ -days 3650 \ -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=www.example.com" COPY dhparam.pem / COPY www.example.com.crt / COPY www.example.com.key / COPY run.sh / CMD ["/run.sh"]