Spaces:
Sleeping
Sleeping
Fabio Grasso
commited on
Commit
•
bb3fd3a
1
Parent(s):
89b971c
fix: dockerfile
Browse files- Dockerfile +13 -4
Dockerfile
CHANGED
@@ -1,11 +1,20 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
WORKDIR /code
|
4 |
|
5 |
-
|
6 |
|
7 |
-
RUN
|
8 |
|
9 |
COPY . .
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|