Created
December 9, 2017 12:28
-
-
Save ROki1988/30446d80fd19909823fa78f489efafd1 to your computer and use it in GitHub Desktop.
rust-crowbar-builer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazonlinux:latest | |
RUN curl https://sh.rustup.rs -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 https://www.openssl.org/source/openssl-1.1.0f.tar.gz | 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 build.sh /usr/local/bin/ | |
VOLUME ["/code"] | |
WORKDIR /code | |
ENTRYPOINT ["/usr/local/bin/build.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment