Revert back to debian certbot, included default ssl certs

This commit is contained in:
Deon George 2018-07-09 16:13:26 +10:00
parent 831ae4aefe
commit c53384641f
3 changed files with 60 additions and 6 deletions

View File

@ -5,14 +5,15 @@ FROM nginx:latest
COPY etc/nginx/default.d /etc/nginx/default.d COPY etc/nginx/default.d /etc/nginx/default.d
COPY var/www/maintenance /var/www/maintenance COPY var/www/maintenance /var/www/maintenance
RUN apt-get update && apt-get install curl -yyq \ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list \
&& apt-get update && apt-get -t stretch-backports install certbot -yy \
&& rm -rf /var/lib/apt/lists/* /tmp/* && rm -rf /var/lib/apt/lists/* /tmp/*
RUN cd /usr/local/sbin && \ #RUN cd /usr/local/sbin && \
curl -O https://dl.eff.org/certbot-auto && \ # curl -O https://dl.eff.org/certbot-auto && \
chmod +x certbot-auto && ./certbot-auto -n --install-only # chmod +x certbot-auto && ./certbot-auto -n --install-only
#
RUN ln -s /usr/local/sbin/certbot-auto /usr/local/sbin/certbot #RUN ln -s /usr/local/sbin/certbot-auto /usr/local/sbin/certbot
EXPOSE 80 443 EXPOSE 80 443

View File

@ -0,0 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIEKjCCAxKgAwIBAgIJALsoV61BAIR7MA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNV
BAYTAkFVMQwwCgYDVQQIEwNWSUMxEjAQBgNVBAcTCU1lbGJvdXJuZTENMAsGA1UE
ChMEQUNNRTEMMAoGA1UECxMDV2ViMRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTgw
NjE5MjAxNTE5WhcNMjgwNjE2MjAxNTE5WjBgMQswCQYDVQQGEwJBVTEMMAoGA1UE
CBMDVklDMRIwEAYDVQQHEwlNZWxib3VybmUxDTALBgNVBAoTBEFDTUUxDDAKBgNV
BAsTA1dlYjESMBAGA1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgK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