diff --git a/Dockerfile b/Dockerfile index 1440ed6..e2c3d4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,4 @@ COPY . . ENV PYTHONUNBUFFERED=1 - - -ENTRYPOINT ["uvicorn", "src.api:app", "--host", "0.0.0.0", "--port", "1234"] \ No newline at end of file +ENTRYPOINT ["gunicorn", "src.api:app", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:1234"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 644400e..91bb9bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "git-metadata-extractor" -version = "0.2.0" +version = "1.0.0" description = "This project is designed to classify imaging software repositories and extract relevant information using AI models." readme = "README.md" requires-python = ">=3.9" @@ -41,9 +41,10 @@ dependencies = [ "rdflib==6.2.0", "rdflib-jsonld==0.6.2", "PyYAML==6.0.2", - "selenium", - "beautifulsoup4", - "aiohttp", + "selenium==4.34.2", + "beautifulsoup4==4.13.4", + "aiohttp==3.12.15", + "uvicorn-worker==0.3.0" ] [project.urls] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c03bbaa..0000000 --- a/requirements.txt +++ /dev/null @@ -1,15 +0,0 @@ -pydantic==2.11.7 -python-dotenv==0.21.1 -google-genai==0.1.0 -repo-to-text==0.7.0 -PyLD -rdflib==6.2.0 -rdflib-jsonld==0.6.2 -tiktoken==0.9.0 -fastapi==0.115.13 -uvicorn==0.34.3 -gimie==0.7.2 -pyyaml -openai==1.91.0 -beautifulsoup4==4.13.4 -selenium==4.34.2