-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 762 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 762 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
25
26
27
28
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
curl build-essential && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. "$HOME/.cargo/env" && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/diffcfd
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
COPY diffcfd/ diffcfd/
COPY scripts/ scripts/
COPY pyproject.toml README.md ./
RUN pip install --no-cache-dir maturin && \
. "$HOME/.cargo/env" && \
pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu && \
pip install --no-cache-dir numpy scipy "gymnasium>=0.26" && \
maturin develop --release
COPY Makefile .
COPY tests/ tests/
ENV PYTHONHASHSEED=42
CMD ["make", "flagship-b-ci"]