Spaces:
Sleeping
Sleeping
Commit
·
6bb3ad4
1
Parent(s):
245db06
Configure Dockerfile
Browse files- Dockerfile +13 -0
- README.md +1 -2
- requirements.txt +1 -1
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY requirements.txt requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
EXPOSE 8000
|
12 |
+
|
13 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
README.md
CHANGED
@@ -4,8 +4,7 @@ emoji: 🚀
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
-
|
8 |
-
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
short_description: lab for education
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
+
app-port: 8000
|
|
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
10 |
short_description: lab for education
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
fastapi>=0.100.0
|
2 |
uvicorn[standard]>=0.20.0
|
3 |
httpx>=0.24.0
|
4 |
-
python
|
|
|
1 |
fastapi>=0.100.0
|
2 |
uvicorn[standard]>=0.20.0
|
3 |
httpx>=0.24.0
|
4 |
+
python-dotenv>=.0.20.0
|