Spaces:
Runtime error
Runtime error
CazimirRoman
commited on
Commit
•
246848e
1
Parent(s):
b343c18
Initial commit
Browse files- .dockerignore +23 -0
- Dockerfile +11 -0
- app/app.py +0 -0
- requirements.txt +2 -0
.dockerignore
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__
|
2 |
+
*.pyc
|
3 |
+
*.pyo
|
4 |
+
*.pyd
|
5 |
+
.Python
|
6 |
+
env/
|
7 |
+
.venv/
|
8 |
+
pip-log.txt
|
9 |
+
pip-delete-this-directory.txt
|
10 |
+
.tox/
|
11 |
+
.coverage
|
12 |
+
.coverage.*
|
13 |
+
.cache
|
14 |
+
nosetests.xml
|
15 |
+
coverage.xml
|
16 |
+
*.cover
|
17 |
+
*.log
|
18 |
+
.git
|
19 |
+
.gitignore
|
20 |
+
.mypy_cache
|
21 |
+
.pytest_cache
|
22 |
+
.hypothesis
|
23 |
+
.idea
|
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
+
COPY ./app /code/app
|
10 |
+
|
11 |
+
CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "7860"]
|
app/app.py
ADDED
File without changes
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
fastapi
|
2 |
+
uvicorn
|