-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
35 lines (29 loc) · 900 Bytes
/
Dockerfile.test
File metadata and controls
35 lines (29 loc) · 900 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
29
30
31
32
33
34
35
# Dockerfile for running mlnative tests against the Rust renderer stack
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
libcurl4 \
libcurl4-openssl-dev \
libglfw3 \
libuv1 \
mesa-vulkan-drivers \
pkg-config \
python3.12 \
python3.12-venv \
zlib1g \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN curl https://mise.run | sh
ENV PATH="/root/.local/bin:$PATH"
COPY .mise.toml pyproject.toml Justfile README.md ./
COPY mlnative/ ./mlnative/
COPY rust/ ./rust/
COPY examples/ ./examples/
COPY tests/ ./tests/
COPY scripts/ ./scripts/
RUN mise trust --yes && mise install
RUN mise exec -- uv venv && mise exec -- uv pip install -e ".[dev,web]"
RUN mise exec -- just build-rust && mise exec -- just ci-build-binary linux-x64
CMD ["sh", "-c", "mise exec -- just test"]