Akash4911 commited on
Commit
72752d9
·
1 Parent(s): 072e68e

Optimization: Move email-validator to end of Dockerfile to preserve heavy ML layer cache

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -22,7 +22,7 @@ COPY requirements.txt .
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Step 1: Core Framework
25
- RUN pip install --no-cache-dir fastapi "uvicorn[standard]" python-multipart python-dotenv pydantic "pydantic-settings" email-validator motor "passlib[bcrypt]" PyJWT google-generativeai
26
 
27
  # Step 2: Heavy ML Engines (CPU Only)
28
  RUN pip install --no-cache-dir torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
@@ -40,7 +40,7 @@ RUN pip install --no-cache-dir "pyannote.audio>=3.1.0"
40
  RUN pip install --no-cache-dir c2pa-python
41
 
42
  # Step 7: Final Misc
43
- RUN pip install --no-cache-dir "protobuf~=4.25.3" python-magic
44
 
45
  COPY . .
46
 
 
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Step 1: Core Framework
25
+ RUN pip install --no-cache-dir fastapi "uvicorn[standard]" python-multipart python-dotenv pydantic "pydantic-settings" motor "passlib[bcrypt]" PyJWT google-generativeai
26
 
27
  # Step 2: Heavy ML Engines (CPU Only)
28
  RUN pip install --no-cache-dir torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu
 
40
  RUN pip install --no-cache-dir c2pa-python
41
 
42
  # Step 7: Final Misc
43
+ RUN pip install --no-cache-dir "protobuf~=4.25.3" python-magic email-validator
44
 
45
  COPY . .
46