Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -12,8 +12,13 @@ RUN mkdir -p data \
|
|
12 |
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
|
19 |
|
|
|
12 |
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
+
ENV PYTHONPATH=/app/src
|
16 |
+
|
17 |
+
# tell Hugging Face this is the public web port
|
18 |
+
EXPOSE 80
|
19 |
+
|
20 |
+
# listen on 0.0.0.0:80 so HF can forward traffic
|
21 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
22 |
|
23 |
|
24 |
|