Sujal Bhat
commited on
Commit
·
8d3fb82
1
Parent(s):
03ca097
docker updates
Browse files- .dockerignore +21 -0
- Dockerfile +12 -5
- requirements.txt +9 -126
.dockerignore
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
venv/
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.pyc
|
| 4 |
+
*.pyo
|
| 5 |
+
*.pyd
|
| 6 |
+
.Python
|
| 7 |
+
env/
|
| 8 |
+
pip-log.txt
|
| 9 |
+
pip-delete-this-directory.txt
|
| 10 |
+
.tox/
|
| 11 |
+
.coverage
|
| 12 |
+
.coverage.*
|
| 13 |
+
.cache
|
| 14 |
+
nosetests.xml
|
| 15 |
+
coverage.xml
|
| 16 |
+
*.cover
|
| 17 |
+
*.log
|
| 18 |
+
.git
|
| 19 |
+
.mypy_cache
|
| 20 |
+
.pytest_cache
|
| 21 |
+
.hypothesis
|
Dockerfile
CHANGED
|
@@ -1,11 +1,18 @@
|
|
| 1 |
-
FROM python:3.
|
|
|
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
USER user
|
| 4 |
ENV HOME=/home/user \
|
| 5 |
PATH=/home/user/.local/bin:$PATH
|
|
|
|
| 6 |
WORKDIR $HOME/app
|
|
|
|
| 7 |
COPY --chown=user . $HOME/app
|
| 8 |
-
COPY ./requirements.txt
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
+
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
| 5 |
ENV HOME=/home/user \
|
| 6 |
PATH=/home/user/.local/bin:$PATH
|
| 7 |
+
|
| 8 |
WORKDIR $HOME/app
|
| 9 |
+
|
| 10 |
COPY --chown=user . $HOME/app
|
| 11 |
+
COPY --chown=user ./requirements.txt $HOME/app/requirements.txt
|
| 12 |
+
|
| 13 |
+
RUN pip install --user --upgrade pip setuptools wheel
|
| 14 |
+
RUN pip install --user --no-cache-dir -r requirements.txt
|
| 15 |
+
|
| 16 |
+
COPY --chown=user . .
|
| 17 |
+
|
| 18 |
+
CMD ["chainlit", "run", "chainlit_app.py", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
|
@@ -1,126 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
bidict==0.23.1
|
| 11 |
-
blinker==1.8.2
|
| 12 |
-
cachetools==5.5.0
|
| 13 |
-
certifi==2024.8.30
|
| 14 |
-
chainlit==1.2.0
|
| 15 |
-
charset-normalizer==3.3.2
|
| 16 |
-
chevron==0.14.0
|
| 17 |
-
click==8.1.7
|
| 18 |
-
colorama==0.4.6
|
| 19 |
-
dataclasses-json==0.6.7
|
| 20 |
-
Deprecated==1.2.14
|
| 21 |
-
distro==1.9.0
|
| 22 |
-
fastapi==0.112.4
|
| 23 |
-
filetype==1.2.0
|
| 24 |
-
frozenlist==1.4.1
|
| 25 |
-
gitdb==4.0.11
|
| 26 |
-
GitPython==3.1.43
|
| 27 |
-
googleapis-common-protos==1.65.0
|
| 28 |
-
greenlet==3.1.1
|
| 29 |
-
grpcio==1.66.1
|
| 30 |
-
grpcio-tools==1.66.1
|
| 31 |
-
h11==0.14.0
|
| 32 |
-
h2==4.1.0
|
| 33 |
-
hpack==4.0.0
|
| 34 |
-
httpcore==1.0.5
|
| 35 |
-
httpx==0.27.2
|
| 36 |
-
hyperframe==6.0.1
|
| 37 |
-
idna==3.10
|
| 38 |
-
importlib_metadata==8.4.0
|
| 39 |
-
Jinja2==3.1.4
|
| 40 |
-
jiter==0.5.0
|
| 41 |
-
jsonpatch==1.33
|
| 42 |
-
jsonpointer==3.0.0
|
| 43 |
-
jsonschema==4.23.0
|
| 44 |
-
jsonschema-specifications==2023.12.1
|
| 45 |
-
langchain==0.3.0
|
| 46 |
-
langchain-community==0.3.0
|
| 47 |
-
langchain-core==0.3.5
|
| 48 |
-
langchain-openai==0.2.0
|
| 49 |
-
langchain-qdrant==0.1.4
|
| 50 |
-
langchain-text-splitters==0.3.0
|
| 51 |
-
langsmith==0.1.125
|
| 52 |
-
Lazify==0.4.0
|
| 53 |
-
literalai==0.0.607
|
| 54 |
-
markdown-it-py==3.0.0
|
| 55 |
-
MarkupSafe==2.1.5
|
| 56 |
-
marshmallow==3.22.0
|
| 57 |
-
mdurl==0.1.2
|
| 58 |
-
multidict==6.1.0
|
| 59 |
-
mypy-extensions==1.0.0
|
| 60 |
-
narwhals==1.8.2
|
| 61 |
-
nest-asyncio==1.6.0
|
| 62 |
-
numpy==1.26.4
|
| 63 |
-
openai==1.47.0
|
| 64 |
-
opentelemetry-api==1.27.0
|
| 65 |
-
opentelemetry-exporter-otlp==1.27.0
|
| 66 |
-
opentelemetry-exporter-otlp-proto-common==1.27.0
|
| 67 |
-
opentelemetry-exporter-otlp-proto-grpc==1.27.0
|
| 68 |
-
opentelemetry-exporter-otlp-proto-http==1.27.0
|
| 69 |
-
opentelemetry-instrumentation==0.48b0
|
| 70 |
-
opentelemetry-proto==1.27.0
|
| 71 |
-
opentelemetry-sdk==1.27.0
|
| 72 |
-
opentelemetry-semantic-conventions==0.48b0
|
| 73 |
-
orjson==3.10.7
|
| 74 |
-
packaging==23.2
|
| 75 |
-
pandas==2.2.3
|
| 76 |
-
pillow==10.4.0
|
| 77 |
-
portalocker==2.10.1
|
| 78 |
-
protobuf==4.25.5
|
| 79 |
-
pyarrow==17.0.0
|
| 80 |
-
pydantic==2.9.2
|
| 81 |
-
pydantic-settings==2.5.2
|
| 82 |
-
pydantic_core==2.23.4
|
| 83 |
-
pydeck==0.9.1
|
| 84 |
-
Pygments==2.18.0
|
| 85 |
-
PyJWT==2.9.0
|
| 86 |
-
PyMuPDF==1.24.10
|
| 87 |
-
PyMuPDFb==1.24.10
|
| 88 |
-
python-dateutil==2.9.0.post0
|
| 89 |
-
python-dotenv==1.0.1
|
| 90 |
-
python-engineio==4.9.1
|
| 91 |
-
python-multipart==0.0.9
|
| 92 |
-
python-socketio==5.11.4
|
| 93 |
-
pytz==2024.2
|
| 94 |
-
pywin32==306
|
| 95 |
-
PyYAML==6.0.2
|
| 96 |
-
qdrant-client==1.11.2
|
| 97 |
-
referencing==0.35.1
|
| 98 |
-
regex==2024.9.11
|
| 99 |
-
requests==2.32.3
|
| 100 |
-
rich==13.8.1
|
| 101 |
-
rpds-py==0.20.0
|
| 102 |
-
simple-websocket==1.0.0
|
| 103 |
-
six==1.16.0
|
| 104 |
-
smmap==5.0.1
|
| 105 |
-
sniffio==1.3.1
|
| 106 |
-
SQLAlchemy==2.0.35
|
| 107 |
-
starlette==0.37.2
|
| 108 |
-
syncer==2.0.3
|
| 109 |
-
tenacity==8.5.0
|
| 110 |
-
tiktoken==0.7.0
|
| 111 |
-
toml==0.10.2
|
| 112 |
-
tomli==2.0.1
|
| 113 |
-
tornado==6.4.1
|
| 114 |
-
tqdm==4.66.5
|
| 115 |
-
typing-inspect==0.9.0
|
| 116 |
-
typing_extensions==4.12.2
|
| 117 |
-
tzdata==2024.1
|
| 118 |
-
uptrace==1.26.0
|
| 119 |
-
urllib3==2.2.3
|
| 120 |
-
uvicorn==0.25.0
|
| 121 |
-
watchdog==4.0.2
|
| 122 |
-
watchfiles==0.20.0
|
| 123 |
-
wrapt==1.16.0
|
| 124 |
-
wsproto==1.2.0
|
| 125 |
-
yarl==1.11.1
|
| 126 |
-
zipp==3.20.2
|
|
|
|
| 1 |
+
chainlit
|
| 2 |
+
langchain
|
| 3 |
+
langchain-openai
|
| 4 |
+
langchain-community
|
| 5 |
+
langchain_qdrant
|
| 6 |
+
openai
|
| 7 |
+
python-dotenv
|
| 8 |
+
qdrant-client
|
| 9 |
+
pytz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|