-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
41 lines (33 loc) · 1.09 KB
/
Dockerfile
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
36
37
38
39
40
41
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 TQDM_MININTERVAL=5
# Install build tools and GCC 13
# https://unix.stackexchange.com/a/752016/605206 RE python3-launchpadlib
# Install build tools, GCC 13, and Python3
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
cmake \
gcc \
python3 \
python3-dev \
python3-pip \
python3-venv \
python3-wheel \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Verify GCC version
RUN gcc --version
# Verify Python version
RUN python3 --version
# Stage local files
COPY . /app
# Install python dependencies
RUN python3 -m pip install uv --break-system-packages \
&& python3 -m uv pip install --system --break-system-packages \
-r /app/requirements-dev/py312/requirements-jit.txt \
&& python3 -m uv pip install --system --break-system-packages "/app[jit]"
# force cppimport build
RUN python3 -m hstrat.dataframe.surface_unpack_reconstruct --help
# Clean up
RUN apt-get clean \
&& rm -rf /root/.cache /tmp/* /app