mojad121 commited on
Commit
a338c27
·
verified ·
1 Parent(s): 09c9de9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -10,15 +10,14 @@ RUN apt-get update && apt-get install -y \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
  COPY src/ ./src/
16
 
17
- # Create writable cache and config folders for Transformers and Streamlit
18
- RUN mkdir -p /app/.cache/huggingface /app/.cache /app/.streamlit && \
19
- chmod -R 777 /app/.cache /app/.streamlit
20
 
21
  EXPOSE 8501
 
22
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
23
 
24
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
 
 
13
  COPY src/ ./src/
14
 
15
+ RUN mkdir -p /app/.cache /app/.streamlit && chmod -R 777 /app/.cache /app/.streamlit
16
+
17
+ RUN pip install --upgrade pip && pip install -r requirements.txt
18
 
19
  EXPOSE 8501
20
+
21
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
22
 
23
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]