mojad121 commited on
Commit
61edcdf
·
verified ·
1 Parent(s): f75f918

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -6,7 +6,6 @@ RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  ffmpeg \
8
  curl \
9
- software-properties-common \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
@@ -15,12 +14,11 @@ RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  COPY src/ ./src/
17
 
18
- RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache
19
-
20
- RUN chmod -R 755 /app/src
21
 
22
  EXPOSE 8501
23
-
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
25
 
26
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
6
  build-essential \
7
  ffmpeg \
8
  curl \
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
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"]