Spaces:
Runtime error
Runtime error
Upload 21 files
Browse files- Dockerfile +13 -0
- Procfile +1 -0
- requirements.txt +8 -2
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
WORKDIR /app
|
5 |
+
|
6 |
+
COPY . /app
|
7 |
+
|
8 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
9 |
+
pip install --no-cache-dir -r requirements.txt
|
10 |
+
|
11 |
+
EXPOSE 8000
|
12 |
+
|
13 |
+
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
|
Procfile
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
web: uvicorn api:app --host=0.0.0.0 --port=${PORT:-8000}
|
requirements.txt
CHANGED
@@ -1,2 +1,8 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn
|
3 |
+
aiofiles
|
4 |
+
jinja2
|
5 |
+
requests
|
6 |
+
beautifulsoup4
|
7 |
+
schedule
|
8 |
+
sqlite3-binary
|