mojad121 commited on
Commit
56d81d8
·
verified ·
1 Parent(s): a64833e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -4,20 +4,19 @@ WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
- ffmpeg \
8
  curl \
9
  git \
 
 
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"]
 
4
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
 
7
  curl \
8
  git \
9
+ ffmpeg \
10
+ libsndfile1 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  COPY requirements.txt ./
14
  COPY src/ ./src/
15
 
16
+ RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
17
 
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  EXPOSE 8501
21
 
 
 
22
  ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]