Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2017 12:28
What would you like to do?
FROM amazonlinux:latest
RUN curl -sSf | sh -s -- -y --default-toolchain stable
RUN yum install -y bzip2-devel gcc gcc-c++ git openssl-devel python27-devel python36-devel readline-devel sqlite-devel zip \
&& yum clean all
WORKDIR /usr/src
RUN curl -L | tar xz && \
cd openssl-1.1.0f && \
./config -fPIC --prefix=/usr/local --openssldir=/usr/local/ssl && \
make -j$(nproc) && \
make install && \
make clean && \
cd .. && rm -rf openssl-1.1.0f
ENV OPENSSL_LIB_DIR=/usr/local/lib64/
ENV OPENSSL_INCLUDE_DIR=/usr/local/include/openssl
ADD /usr/local/bin/
VOLUME ["/code"]
ENTRYPOINT ["/usr/local/bin/"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment