I have this small Dockerfile
FROM alpine:3.3
RUN apk --update add python
CMD [\"python\", \"-c\", \"import urllib2; response = urllib2.urlopen(\'https://www.
You need to install ca-certificates to be able to validate signed certs by public CAs:
FROM alpine:3.3
RUN apk --no-cache add python ca-certificates
CMD ["python", "-c", "import urllib2; response = urllib2.urlopen('https://www.python.org')"]
You will need to upgrade Alpine as libssl needs to be upgraded with a patch
FROM alpine:3.3
RUN apk -U upgrade && \
apk -U add python ca-certificates && \
update-ca-certificates
CMD ["python", "-c", "import urllib2; response = urllib2.urlopen('https://www.python.org')"]
apk -U upgrade will upgrade these: