Spaces:
Running
Running
Restore Dockerfile for Docker Space
Browse files- Dockerfile +6 -0
Dockerfile
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
RUN pip install --no-cache-dir flask gunicorn fastapi uvicorn[standard] beautifulsoup4 lxml requests httpx
|
| 3 |
+
COPY . /app
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
CMD ["gunicorn", "-w", "2", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:7860", "app_v2_entry:app"]
|