-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
638d02c
commit 2743b64
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM python:latest | ||
|
||
WORKDIR /code | ||
|
||
COPY trainAndSaveModel.py /code | ||
COPY main.py /code | ||
COPY requirements.txt /code | ||
|
||
RUN pip install --no-cache-dir -r /code/requirements.txt | ||
|
||
RUN ls -la | ||
|
||
RUN python trainAndSaveModel.py | ||
|
||
RUN ls -la | ||
|
||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
anyio==3.6.1 | ||
asgiref==3.5.2 | ||
certifi==2022.6.15 | ||
charset-normalizer==2.1.0 | ||
click==8.1.3 | ||
dnspython==2.2.1 | ||
email-validator==1.2.1 | ||
fastapi==0.78.0 | ||
h11==0.13.0 | ||
httptools==0.4.0 | ||
idna==3.3 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
joblib==1.1.0 | ||
MarkupSafe==2.1.1 | ||
numpy==1.23.0 | ||
orjson==3.7.7 | ||
pydantic==1.9.1 | ||
python-dotenv==0.20.0 | ||
python-multipart==0.0.5 | ||
PyYAML==6.0 | ||
requests==2.28.1 | ||
scikit-learn==1.1.1 | ||
scipy==1.8.1 | ||
six==1.16.0 | ||
sklearn==0.0 | ||
sniffio==1.2.0 | ||
starlette==0.19.1 | ||
threadpoolctl==3.1.0 | ||
typing_extensions==4.3.0 | ||
ujson==5.4.0 | ||
urllib3==1.26.10 | ||
uvicorn==0.17.6 | ||
uvloop==0.16.0 | ||
watchgod==0.8.2 | ||
websockets==10.3 |