-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use the official manylinux image (compatible with Python packaging standards)
FROM quay.io/pypa/manylinux_2_28_x86_64
# Add Python 3.12 binaries to PATH
ENV PATH="/opt/python/cp312-cp312/bin:${PATH}"
# 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
ENV PATH="/root/.cargo/bin:${PATH}"
# Set default shell
CMD ["/bin/bash"]