Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -12
Dockerfile
CHANGED
@@ -1,22 +1,15 @@
|
|
1 |
-
FROM python:3.10
|
2 |
|
3 |
-
WORKDIR /
|
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
|
15 |
-
RUN pip install --no-cache-dir -r
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
COPY . /home/user/app
|
20 |
|
21 |
ENV HF_TOKEN=${HF_TOKEN}
|
22 |
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
|
3 |
+
WORKDIR /app
|
4 |
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
git \
|
|
|
|
|
|
|
|
|
|
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
COPY requirements.txt .
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
+
COPY . .
|
|
|
|
|
13 |
|
14 |
ENV HF_TOKEN=${HF_TOKEN}
|
15 |
|