-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM quay.io/pypa/manylinux2014_x86_64
ENV PATH /root/.cargo/bin:$PATH
# Add all supported python versions
ENV PATH /opt/python/cp36-cp36m/bin/:/opt/python/cp37-cp37m/bin/:/opt/python/cp38-cp38/bin/:/opt/python/cp39-cp39/bin/:/opt/python/cp310-cp310/bin/:$PATH
# Otherwise `cargo new` errors
ENV USER root
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
&& python3 -m pip install --no-cache-dir cffi maturin \
&& ln -s $(which maturin) /usr/bin/maturin \
&& mkdir /io
ENV LLVM_VERSION=3.9.1
RUN curl -o llvm.xz "https://releases.llvm.org/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-14.04.tar.xz" \
&& tar -xf llvm.xz -C /usr/local/ --strip-components=1 \
&& rm -rf llvm.xz
WORKDIR /io
ENTRYPOINT ["/usr/bin/maturin"]