Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
RUN pip install --no-cache-dir flask cloudscraper beautifulsoup4 lxml gunicorn
|
| 4 |
+
COPY app.py .
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "--threads", "4", "--timeout", "120", "app:app"]
|