martmaiste / nginx-certbot

Nginx reverse proxy with Let's Encrypt support
9 stars 8 forks source link

Upgrading to alpine 3.9 #3

Closed sergey-sobolev closed 5 years ago

sergey-sobolev commented 5 years ago

Hi, please consider upgrading to a newer version of alpine (e.g. 3.9) as with the version 3.7 certbot has crypto libraries version conflict (those installed with alpine 3.7 are too old).

For alpine 3.9 the Dockerfile needs the following changes:

@@ -1,4 +1,4 @@
-FROM alpine:3.7
+FROM alpine:3.9

 ENV UID=0 GID=0 \
     UPLOAD_MAX_SIZE=10G \
@@ -10,7 +10,7 @@ RUN addgroup -S nginx \
  && adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
  && apk -U upgrade && apk add \
     bash \
-    libssl1.0 \
+    libssl1.1 \
     openssl \
     certbot \   
     nginx \
martmaiste commented 5 years ago

Hi, alpine version and libssl1.1 are now updated in Dockerfile. I'm not sure whether the libssl1.1 is actually necessary with alpine 3.9 but I still left it in at the moment.

sergey-sobolev commented 5 years ago

thank you for the update!