gavinzli commited on
Commit
61dc244
·
1 Parent(s): 5d5142b

Optimize Dockerfile: combine apt-get update and install commands for libgl1-mesa-glx

Browse files
Files changed (1) hide show
  1. 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
- RUN apt-get update
14
- RUN apt-get install libgl1-mesa-glx
 
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