Praveen76 commited on
Commit
e9767e9
1 Parent(s): bf0b534

Upload 3 files

Browse files
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pull python base image
2
+ FROM python:3.10
3
+
4
+ ADD requirements.txt requirements.txt
5
+
6
+ ADD *.whl .
7
+
8
+ # update pip
9
+ RUN pip install --upgrade pip
10
+
11
+ # install dependencies
12
+ RUN pip install -r requirements.txt
13
+
14
+ RUN rm *.whl
15
+
16
+ # copy application files
17
+ COPY app/. app/.
18
+
19
+ # expose port for application
20
+ EXPOSE 8001
21
+
22
+ # start fastapi application
23
+ CMD ["python", "app/main.py"]
requirements.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ uvicorn>=0.16.0,<0.18.0
2
+ fastapi>=0.64.0,<1.0.0
3
+ pydantic #>=1.8.1,<2.0.0
4
+ requests>=2.23.0,<2.24.0
5
+
6
+ gradio==3.36.1 # gives a friendly web interface
7
+
8
+ prometheus-client # for monitoring purpose
9
+
10
+ # If locally copied whl file inside titanic_model_api then use given below
11
+ titanic_model-0.0.1-py3-none-any.whl
12
+
13
+ # After uploding your package in PyPI use the given below PyPI - Python Package Index
14
+ #titanic-model==0.0.1
titanic_model-0.0.1-py3-none-any.whl ADDED
Binary file (157 kB). View file