NaveenKumar5 commited on
Commit
eda0adc
·
verified ·
1 Parent(s): 88d5ce4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -2,12 +2,15 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies needed for OpenCV
6
  RUN apt-get update && apt-get install -y \
7
  libgl1 \
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
@@ -16,4 +19,3 @@ COPY src/ ./src/
16
  EXPOSE 8501
17
 
18
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"]
19
-
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install required system libraries for OpenCV
6
  RUN apt-get update && apt-get install -y \
7
  libgl1 \
8
  libglib2.0-0 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Set Hugging Face cache directory to a writable location
12
+ ENV TRANSFORMERS_CACHE=/tmp/huggingface
13
+
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
19
  EXPOSE 8501
20
 
21
  CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"]