Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -19
Dockerfile
CHANGED
@@ -1,33 +1,25 @@
|
|
1 |
-
|
2 |
-
|
|
|
3 |
|
4 |
-
# Устанавливаем необходимые системные зависимости
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
git \
|
7 |
-
git-lfs \
|
8 |
ffmpeg \
|
9 |
libsm6 \
|
10 |
libxext6 \
|
11 |
cmake \
|
12 |
rsync \
|
13 |
-
|
14 |
-
&& rm -rf /var/lib/apt/lists/* \
|
15 |
-
&& git lfs install
|
16 |
|
17 |
-
|
18 |
-
RUN pip install --
|
19 |
|
20 |
-
|
21 |
-
WORKDIR /home/user/app
|
22 |
|
23 |
-
|
24 |
-
COPY requirements.txt /home/user/app/
|
25 |
|
26 |
-
|
27 |
-
RUN pip install --no-cache-dir -r /home/user/app/requirements.txt
|
28 |
|
29 |
-
|
30 |
-
COPY . /home/user/app/
|
31 |
|
32 |
-
|
33 |
-
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.10.13-slim
|
2 |
+
|
3 |
+
WORKDIR /home/user/app
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
git \
|
|
|
7 |
ffmpeg \
|
8 |
libsm6 \
|
9 |
libxext6 \
|
10 |
cmake \
|
11 |
rsync \
|
12 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
13 |
|
14 |
+
COPY requirements.txt /tmp/requirements.txt
|
15 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
16 |
|
17 |
+
RUN FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE pip install flash-attn --no-build-isolation
|
|
|
18 |
|
19 |
+
COPY . /home/user/app
|
|
|
20 |
|
21 |
+
ENV HF_TOKEN=${HF_TOKEN}
|
|
|
22 |
|
23 |
+
EXPOSE 7860
|
|
|
24 |
|
25 |
+
CMD ["python", "app.py"]
|
|