Fabio Grasso commited on
Commit
bb3fd3a
1 Parent(s): 89b971c

fix: dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,11 +1,20 @@
1
  FROM python:3.9
2
 
3
- WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY . .
10
 
11
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.9
2
 
 
3
 
4
+ RUN pip install --user --upgrade pip
5
 
6
+ RUN apt-get update && apt-get install -y ffmpeg
7
 
8
  COPY . .
9
 
10
+
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+
14
+ ENV PYTHONPATH "${PYTHONPATH}:/app"
15
+
16
+ EXPOSE 7860
17
+
18
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
19
+
20
+ ENTRYPOINT ["streamlit", "run", "app/main.py", "--server.port=7860", "--server.address=0.0.0.0"]