Spaces:
No application file
No application file
Commit
·
8713731
1
Parent(s):
703b18b
Add Application file
Browse files- Dockerfile +16 -0
- packages.txt +1 -0
- requirements.txt +7 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# you will also find guides on how best to write your Dockerfile
|
3 |
+
|
4 |
+
|
5 |
+
FROM python:3.9
|
6 |
+
|
7 |
+
RUN apt-get update && apt-get -y install libglib2.0-0
|
8 |
+
WORKDIR /code
|
9 |
+
RUN
|
10 |
+
COPY ./requirements.txt /code/requirements.txt
|
11 |
+
|
12 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
+
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
packages.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
python3-opencv
|
requirements.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
opencv-python
|
2 |
+
fastapi
|
3 |
+
uvicorn
|
4 |
+
easyocr
|
5 |
+
python-dotenv
|
6 |
+
requests
|
7 |
+
pydantic
|