Spaces:
Running
Running
Optimize Dockerfile: combine apt-get update and install commands for libgl1-mesa-glx
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -10,8 +10,9 @@ WORKDIR /app
|
|
10 |
# Create a cache directory and set permissions
|
11 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
12 |
|
13 |
-
|
14 |
-
RUN apt-get
|
|
|
15 |
|
16 |
# Install requirements.txt
|
17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
10 |
# Create a cache directory and set permissions
|
11 |
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
12 |
|
13 |
+
# Install dependencies
|
14 |
+
RUN apt-get update && \
|
15 |
+
apt-get install -y libgl1-mesa-glx
|
16 |
|
17 |
# Install requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|