Commit
·
8e84242
1
Parent(s):
5b5fff9
updated reqs
Browse files- Dockerfile +5 -19
- Dockerfile.old +2 -2
- requirements.in +1 -1
- requirements.txt +24 -23
Dockerfile
CHANGED
|
@@ -1,25 +1,11 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
-
|
| 3 |
-
# Create user and set up directories
|
| 4 |
RUN useradd -m -u 1000 user
|
| 5 |
-
WORKDIR /home/user/app
|
| 6 |
-
|
| 7 |
-
# Create .chainlit directory with correct permissions
|
| 8 |
-
RUN mkdir -p /home/user/.chainlit && chown -R user:user /home/user/.chainlit
|
| 9 |
-
|
| 10 |
-
# Copy requirements and install dependencies
|
| 11 |
-
COPY requirements.txt .
|
| 12 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
-
|
| 14 |
-
# Copy application files
|
| 15 |
-
COPY --chown=user:user . .
|
| 16 |
-
|
| 17 |
-
# Switch to the user
|
| 18 |
USER user
|
| 19 |
-
|
| 20 |
-
# Set environment variables
|
| 21 |
ENV HOME=/home/user \
|
| 22 |
PATH=/home/user/.local/bin:$PATH
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
| 25 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
|
| 1 |
FROM python:3.10
|
|
|
|
|
|
|
| 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 ~/app/requirements.txt
|
| 9 |
+
RUN pip install -r requirements.txt
|
| 10 |
+
COPY . .
|
| 11 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
Dockerfile.old
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
USER user
|
| 4 |
ENV HOME=/home/user \
|
|
@@ -6,6 +6,6 @@ ENV HOME=/home/user \
|
|
| 6 |
WORKDIR $HOME/app
|
| 7 |
COPY --chown=user . $HOME/app
|
| 8 |
COPY ./requirements.txt ~/app/requirements.txt
|
| 9 |
-
RUN pip install
|
| 10 |
COPY . .
|
| 11 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
USER user
|
| 4 |
ENV HOME=/home/user \
|
|
|
|
| 6 |
WORKDIR $HOME/app
|
| 7 |
COPY --chown=user . $HOME/app
|
| 8 |
COPY ./requirements.txt ~/app/requirements.txt
|
| 9 |
+
RUN pip install -r requirements.txt
|
| 10 |
COPY . .
|
| 11 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
requirements.in
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
chainlit
|
| 2 |
langchain
|
| 3 |
langchain-huggingface
|
| 4 |
langchain-community
|
|
|
|
| 1 |
+
chainlit==0.7.700
|
| 2 |
langchain
|
| 3 |
langchain-huggingface
|
| 4 |
langchain-community
|
requirements.txt
CHANGED
|
@@ -12,18 +12,19 @@ aiohttp==3.10.5
|
|
| 12 |
# via
|
| 13 |
# langchain
|
| 14 |
# langchain-community
|
|
|
|
| 15 |
aiosignal==1.3.1
|
| 16 |
# via aiohttp
|
| 17 |
annotated-types==0.7.0
|
| 18 |
# via pydantic
|
| 19 |
-
anyio==
|
| 20 |
# via
|
| 21 |
# asyncer
|
| 22 |
-
#
|
| 23 |
# openai
|
| 24 |
# starlette
|
| 25 |
# watchfiles
|
| 26 |
-
asyncer==0.0.
|
| 27 |
# via chainlit
|
| 28 |
attrs==24.2.0
|
| 29 |
# via aiohttp
|
|
@@ -34,17 +35,15 @@ certifi==2024.8.30
|
|
| 34 |
# httpcore
|
| 35 |
# httpx
|
| 36 |
# requests
|
| 37 |
-
chainlit==
|
| 38 |
# via -r requirements.in
|
| 39 |
charset-normalizer==3.3.2
|
| 40 |
# via requests
|
| 41 |
-
chevron==0.14.0
|
| 42 |
-
# via literalai
|
| 43 |
click==8.1.7
|
| 44 |
# via
|
| 45 |
# chainlit
|
| 46 |
# uvicorn
|
| 47 |
-
dataclasses-json==0.
|
| 48 |
# via
|
| 49 |
# chainlit
|
| 50 |
# langchain-community
|
|
@@ -56,7 +55,11 @@ deprecated==1.2.14
|
|
| 56 |
# opentelemetry-semantic-conventions
|
| 57 |
distro==1.9.0
|
| 58 |
# via openai
|
| 59 |
-
fastapi==0.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
# via chainlit
|
| 61 |
filelock==3.16.1
|
| 62 |
# via
|
|
@@ -96,13 +99,12 @@ h2==4.1.0
|
|
| 96 |
# via httpx
|
| 97 |
hpack==4.0.0
|
| 98 |
# via h2
|
| 99 |
-
httpcore==
|
| 100 |
# via httpx
|
| 101 |
-
httpx[http2]==0.
|
| 102 |
# via
|
| 103 |
# chainlit
|
| 104 |
# langsmith
|
| 105 |
-
# literalai
|
| 106 |
# openai
|
| 107 |
# qdrant-client
|
| 108 |
huggingface-hub==0.25.1
|
|
@@ -160,8 +162,6 @@ langsmith==0.1.125
|
|
| 160 |
# langchain-core
|
| 161 |
lazify==0.4.0
|
| 162 |
# via chainlit
|
| 163 |
-
literalai==0.0.607
|
| 164 |
-
# via chainlit
|
| 165 |
markupsafe==2.1.5
|
| 166 |
# via jinja2
|
| 167 |
marshmallow==3.22.0
|
|
@@ -180,7 +180,6 @@ networkx==3.3
|
|
| 180 |
# via torch
|
| 181 |
numpy==1.26.4
|
| 182 |
# via
|
| 183 |
-
# chainlit
|
| 184 |
# langchain
|
| 185 |
# langchain-community
|
| 186 |
# qdrant-client
|
|
@@ -259,7 +258,6 @@ packaging==23.2
|
|
| 259 |
# chainlit
|
| 260 |
# huggingface-hub
|
| 261 |
# langchain-core
|
| 262 |
-
# literalai
|
| 263 |
# marshmallow
|
| 264 |
# transformers
|
| 265 |
pillow==10.4.0
|
|
@@ -279,7 +277,6 @@ pydantic==2.9.2
|
|
| 279 |
# langchain-core
|
| 280 |
# langchain-qdrant
|
| 281 |
# langsmith
|
| 282 |
-
# literalai
|
| 283 |
# openai
|
| 284 |
# pydantic-settings
|
| 285 |
# qdrant-client
|
|
@@ -299,10 +296,12 @@ python-dotenv==1.0.1
|
|
| 299 |
# pydantic-settings
|
| 300 |
python-engineio==4.9.1
|
| 301 |
# via python-socketio
|
| 302 |
-
python-
|
| 303 |
# via chainlit
|
| 304 |
-
python-
|
| 305 |
# via chainlit
|
|
|
|
|
|
|
| 306 |
pyyaml==6.0.2
|
| 307 |
# via
|
| 308 |
# huggingface-hub
|
|
@@ -325,6 +324,7 @@ requests==2.32.3
|
|
| 325 |
# langchain-community
|
| 326 |
# langsmith
|
| 327 |
# opentelemetry-exporter-otlp-proto-http
|
|
|
|
| 328 |
# tiktoken
|
| 329 |
# transformers
|
| 330 |
safetensors==0.4.5
|
|
@@ -342,16 +342,15 @@ simple-websocket==1.0.0
|
|
| 342 |
sniffio==1.3.1
|
| 343 |
# via
|
| 344 |
# anyio
|
|
|
|
| 345 |
# httpx
|
| 346 |
# openai
|
| 347 |
sqlalchemy==2.0.35
|
| 348 |
# via
|
| 349 |
# langchain
|
| 350 |
# langchain-community
|
| 351 |
-
starlette==0.
|
| 352 |
-
# via
|
| 353 |
-
# chainlit
|
| 354 |
-
# fastapi
|
| 355 |
sympy==1.13.3
|
| 356 |
# via torch
|
| 357 |
syncer==2.0.3
|
|
@@ -405,10 +404,12 @@ urllib3==2.2.3
|
|
| 405 |
# via
|
| 406 |
# qdrant-client
|
| 407 |
# requests
|
| 408 |
-
uvicorn==0.
|
| 409 |
# via chainlit
|
| 410 |
watchfiles==0.20.0
|
| 411 |
# via chainlit
|
|
|
|
|
|
|
| 412 |
wrapt==1.16.0
|
| 413 |
# via
|
| 414 |
# deprecated
|
|
|
|
| 12 |
# via
|
| 13 |
# langchain
|
| 14 |
# langchain-community
|
| 15 |
+
# python-graphql-client
|
| 16 |
aiosignal==1.3.1
|
| 17 |
# via aiohttp
|
| 18 |
annotated-types==0.7.0
|
| 19 |
# via pydantic
|
| 20 |
+
anyio==3.7.1
|
| 21 |
# via
|
| 22 |
# asyncer
|
| 23 |
+
# httpcore
|
| 24 |
# openai
|
| 25 |
# starlette
|
| 26 |
# watchfiles
|
| 27 |
+
asyncer==0.0.2
|
| 28 |
# via chainlit
|
| 29 |
attrs==24.2.0
|
| 30 |
# via aiohttp
|
|
|
|
| 35 |
# httpcore
|
| 36 |
# httpx
|
| 37 |
# requests
|
| 38 |
+
chainlit==0.7.700
|
| 39 |
# via -r requirements.in
|
| 40 |
charset-normalizer==3.3.2
|
| 41 |
# via requests
|
|
|
|
|
|
|
| 42 |
click==8.1.7
|
| 43 |
# via
|
| 44 |
# chainlit
|
| 45 |
# uvicorn
|
| 46 |
+
dataclasses-json==0.5.14
|
| 47 |
# via
|
| 48 |
# chainlit
|
| 49 |
# langchain-community
|
|
|
|
| 55 |
# opentelemetry-semantic-conventions
|
| 56 |
distro==1.9.0
|
| 57 |
# via openai
|
| 58 |
+
fastapi==0.100.1
|
| 59 |
+
# via
|
| 60 |
+
# chainlit
|
| 61 |
+
# fastapi-socketio
|
| 62 |
+
fastapi-socketio==0.0.10
|
| 63 |
# via chainlit
|
| 64 |
filelock==3.16.1
|
| 65 |
# via
|
|
|
|
| 99 |
# via httpx
|
| 100 |
hpack==4.0.0
|
| 101 |
# via h2
|
| 102 |
+
httpcore==0.17.3
|
| 103 |
# via httpx
|
| 104 |
+
httpx[http2]==0.24.1
|
| 105 |
# via
|
| 106 |
# chainlit
|
| 107 |
# langsmith
|
|
|
|
| 108 |
# openai
|
| 109 |
# qdrant-client
|
| 110 |
huggingface-hub==0.25.1
|
|
|
|
| 162 |
# langchain-core
|
| 163 |
lazify==0.4.0
|
| 164 |
# via chainlit
|
|
|
|
|
|
|
| 165 |
markupsafe==2.1.5
|
| 166 |
# via jinja2
|
| 167 |
marshmallow==3.22.0
|
|
|
|
| 180 |
# via torch
|
| 181 |
numpy==1.26.4
|
| 182 |
# via
|
|
|
|
| 183 |
# langchain
|
| 184 |
# langchain-community
|
| 185 |
# qdrant-client
|
|
|
|
| 258 |
# chainlit
|
| 259 |
# huggingface-hub
|
| 260 |
# langchain-core
|
|
|
|
| 261 |
# marshmallow
|
| 262 |
# transformers
|
| 263 |
pillow==10.4.0
|
|
|
|
| 277 |
# langchain-core
|
| 278 |
# langchain-qdrant
|
| 279 |
# langsmith
|
|
|
|
| 280 |
# openai
|
| 281 |
# pydantic-settings
|
| 282 |
# qdrant-client
|
|
|
|
| 296 |
# pydantic-settings
|
| 297 |
python-engineio==4.9.1
|
| 298 |
# via python-socketio
|
| 299 |
+
python-graphql-client==0.4.3
|
| 300 |
# via chainlit
|
| 301 |
+
python-multipart==0.0.6
|
| 302 |
# via chainlit
|
| 303 |
+
python-socketio==5.11.4
|
| 304 |
+
# via fastapi-socketio
|
| 305 |
pyyaml==6.0.2
|
| 306 |
# via
|
| 307 |
# huggingface-hub
|
|
|
|
| 324 |
# langchain-community
|
| 325 |
# langsmith
|
| 326 |
# opentelemetry-exporter-otlp-proto-http
|
| 327 |
+
# python-graphql-client
|
| 328 |
# tiktoken
|
| 329 |
# transformers
|
| 330 |
safetensors==0.4.5
|
|
|
|
| 342 |
sniffio==1.3.1
|
| 343 |
# via
|
| 344 |
# anyio
|
| 345 |
+
# httpcore
|
| 346 |
# httpx
|
| 347 |
# openai
|
| 348 |
sqlalchemy==2.0.35
|
| 349 |
# via
|
| 350 |
# langchain
|
| 351 |
# langchain-community
|
| 352 |
+
starlette==0.27.0
|
| 353 |
+
# via fastapi
|
|
|
|
|
|
|
| 354 |
sympy==1.13.3
|
| 355 |
# via torch
|
| 356 |
syncer==2.0.3
|
|
|
|
| 404 |
# via
|
| 405 |
# qdrant-client
|
| 406 |
# requests
|
| 407 |
+
uvicorn==0.23.2
|
| 408 |
# via chainlit
|
| 409 |
watchfiles==0.20.0
|
| 410 |
# via chainlit
|
| 411 |
+
websockets==13.1
|
| 412 |
+
# via python-graphql-client
|
| 413 |
wrapt==1.16.0
|
| 414 |
# via
|
| 415 |
# deprecated
|