Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1
|
2 |
|
3 |
-
|
4 |
-
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
7 |
&& rm -rf /var/lib/apt/lists/* \
|
@@ -14,11 +13,11 @@ RUN apt-get update && apt-get install -y fakeroot \
|
|
14 |
&& rm -rf /var/lib/apt/lists/* \
|
15 |
&& useradd -m -u 1000 user
|
16 |
|
17 |
-
|
18 |
|
19 |
-
# Upgrade pip
|
20 |
RUN pip install --no-cache-dir --upgrade pip
|
21 |
|
22 |
-
# Install requirements
|
23 |
-
|
24 |
-
|
|
|
1 |
FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1
|
2 |
|
3 |
+
# Install necessary packages
|
|
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
6 |
&& rm -rf /var/lib/apt/lists/* \
|
|
|
13 |
&& rm -rf /var/lib/apt/lists/* \
|
14 |
&& useradd -m -u 1000 user
|
15 |
|
16 |
+
WORKDIR /home/user/app
|
17 |
|
18 |
+
# Upgrade pip to the latest version
|
19 |
RUN pip install --no-cache-dir --upgrade pip
|
20 |
|
21 |
+
# Install packages from requirements.txt
|
22 |
+
COPY requirements.txt /tmp/requirements.txt
|
23 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|