github.com/Psiphon-Labs/tls-tris@v0.0.0-20230824155421-58bf6d336a9a/_dev/testdata/Dockerfile (about)

     1  # docker build -t tls-tris:testdata _dev/testdata
     2  # GOOS=linux ./_dev/go.sh test -c crypto/tls
     3  # docker run -it --rm -v "$(pwd):$(pwd)" -w "$(pwd)" tls-tris:testdata 
     4  # ./tls.test -update -test.v -test.run SCTs
     5  ## === RUN   TestHandshakClientSCTs
     6  ## Wrote testdata/Client-TLSv12-SCT
     7  ## --- PASS: TestHandshakClientSCTs (0.62s)
     8  ## PASS
     9  
    10  FROM alpine
    11  
    12  RUN apk add --update \
    13  		wget \
    14  		build-base \
    15  		perl \
    16  		ca-certificates \
    17  		linux-headers \
    18  	&& rm -rf /var/cache/apk/*
    19  
    20  RUN wget https://www.openssl.org/source/openssl-1.1.0c.tar.gz
    21  RUN tar xvf openssl-1.1.0c.tar.gz
    22  RUN cd openssl-1.1.0c && perl ./Configure enable-weak-ssl-ciphers enable-ssl3 enable-ssl3-method -static linux-x86_64
    23  RUN cd openssl-1.1.0c && make
    24  RUN cd openssl-1.1.0c && make install
    25  
    26  ENTRYPOINT ["/bin/sh"]