Skip to content

Commit

Permalink
Add Docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
jafarijason committed Jul 14, 2022
1 parent 638d02c commit 2743b64
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ML/Dockerfile
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"]
36 changes: 36 additions & 0 deletions ML/requirements.txt
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

0 comments on commit 2743b64

Please sign in to comment.