Skip to content

Instantly share code, notes, and snippets.

@ROki1988
Created Dec 9, 2017
Embed
What would you like to do?
rust-crowbar-builer
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