forked from pureai-ecosystem/purecpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use the official manylinux image (compatible with Python packaging standards)
FROM quay.io/pypa/manylinux_2_28_x86_64
# Set working directory
WORKDIR /home
# Install development tools, Python deps, Rust, and cleanup to save space
RUN yum install -y \
gcc gcc-c++ make git curl wget \
ninja-build libffi-devel openssl-devel \
protobuf-devel gflags-devel zlib-devel \
openblas-devel unzip\
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& yum clean all \
&& rm -rf /var/cache/yum
# Add Rust to PATH and Python 3.12 binaries to PATH
ENV PATH="/root/.cargo/bin:/opt/python/cp312-cp312/bin:${PATH}"
# Set default shell
CMD ["/bin/bash"]