Spaces:
Sleeping
Sleeping
sarthaksavvy
commited on
Commit
·
bdcd9f0
1
Parent(s):
10a75b8
[main] using requirements file
Browse files- .gitignore +3 -0
- Dockerfile +1 -3
- compose.yml +17 -0
.gitignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv
|
| 2 |
+
__pycache__
|
| 3 |
+
.vscode
|
Dockerfile
CHANGED
|
@@ -14,8 +14,6 @@ WORKDIR $HOME/app
|
|
| 14 |
COPY --chown=user . $HOME/app
|
| 15 |
|
| 16 |
RUN pip install --upgrade pip
|
| 17 |
-
RUN pip install
|
| 18 |
-
RUN pip install h5py --only-binary h5py
|
| 19 |
-
RUN pip install tensorflow tf-keras torch torchvision
|
| 20 |
|
| 21 |
CMD fastapi run --reload --host=0.0.0.0 --port=7860
|
|
|
|
| 14 |
COPY --chown=user . $HOME/app
|
| 15 |
|
| 16 |
RUN pip install --upgrade pip
|
| 17 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
| 18 |
|
| 19 |
CMD fastapi run --reload --host=0.0.0.0 --port=7860
|
compose.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3"
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
web:
|
| 5 |
+
build: ./
|
| 6 |
+
ports:
|
| 7 |
+
- 7860:7860
|
| 8 |
+
networks:
|
| 9 |
+
- tutorial-net
|
| 10 |
+
volumes:
|
| 11 |
+
- ./:/app
|
| 12 |
+
networks:
|
| 13 |
+
tutorial-net:
|
| 14 |
+
driver: bridge
|
| 15 |
+
# volumes:
|
| 16 |
+
# tutorial-vol:
|
| 17 |
+
# driver:loc
|