mr-kush commited on
Commit
df700a3
·
1 Parent(s): 4d5c03a

Optimize Dockerfile by removing unnecessary OS-level dependency installations

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -14,11 +14,8 @@ WORKDIR /home/user/app
14
  COPY --chown=user requirements.txt /home/user/app/requirements.txt
15
 
16
  # Install OS-level dependencies, Python dependencies
17
- RUN apt-get update \
18
- && apt-get install -y --no-install-recommends git curl \
19
- && rm -rf /var/lib/apt/lists/* \
20
- && pip install --upgrade pip \
21
- && pip install --no-cache-dir -r /home/user/app/requirements.txt
22
 
23
  # Set environment variables for Hugging Face cache locations (inside container)
24
  ENV HF_HOME=/home/user/app/hf_cache \
 
14
  COPY --chown=user requirements.txt /home/user/app/requirements.txt
15
 
16
  # Install OS-level dependencies, Python dependencies
17
+ RUN pip install --upgrade pip \
18
+ && pip install --no-cache-dir -r requirements.txt
 
 
 
19
 
20
  # Set environment variables for Hugging Face cache locations (inside container)
21
  ENV HF_HOME=/home/user/app/hf_cache \