forked from FoundationVision/Infinity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
27 lines (21 loc) · 718 Bytes
/
DockerFile
File metadata and controls
27 lines (21 loc) · 718 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
FROM pytorch/pytorch:2.5.1-cuda11.8-cudnn9-devel
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
CUDA_HOME=/usr/local/cuda \
PATH="$CUDA_HOME/bin:$PATH"
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
ffmpeg \
libsm6 \
libxext6 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /workspace/
COPY requirements.txt /workspace/requirements.txt
RUN pip install --upgrade pip \
&& pip install ninja \
&& MAX_JOBS=1 pip install flash-attn --no-build-isolation \
&& pip install -r requirements.txt \
&& pip install opencv-fixer==0.2.5 \
&& python -c "from opencv_fixer import AutoFix; AutoFix()"
CMD ["/bin/bash"]