Skip to content

Instantly share code, notes, and snippets.

@ROki1988
Created December 9, 2017 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ROki1988/30446d80fd19909823fa78f489efafd1 to your computer and use it in GitHub Desktop.
Save ROki1988/30446d80fd19909823fa78f489efafd1 to your computer and use it in GitHub Desktop.
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