Updated Dockerfile and Requirements file Part 2
Browse files- Dockerfile +3 -2
- requirements.txt +10 -10
Dockerfile
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
-
FROM python:3.
|
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 requirements.txt .
|
11 |
RUN pip install --user --upgrade pip
|
12 |
-
RUN pip install --user -r requirements.txt
|
13 |
COPY --chown=user . .
|
14 |
COPY --chown=user . .
|
15 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
1 |
+
FROM python:3.11
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
4 |
USER user
|
5 |
ENV HOME=/home/user \
|
6 |
PATH=/home/user/.local/bin:$PATH
|
7 |
+
PIP_NO_CACHE_DIR=1
|
8 |
|
9 |
WORKDIR $HOME/app
|
10 |
|
11 |
COPY --chown=user requirements.txt .
|
12 |
RUN pip install --user --upgrade pip
|
13 |
+
RUN pip install --no-cache-dir --user -r requirements.txt
|
14 |
COPY --chown=user . .
|
15 |
COPY --chown=user . .
|
16 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
chainlit
|
2 |
-
langchain
|
3 |
-
langchain-openai
|
4 |
-
langchain-community
|
5 |
-
qdrant-client
|
6 |
-
pymupdf
|
7 |
fastapi
|
8 |
uvicorn[standard]
|
9 |
-
python-dotenv
|
10 |
-
marshmallow
|
11 |
-
jsonpatch
|
12 |
-
jiter
|
|
|
1 |
+
chainlit>=0.7.700,<0.8.0
|
2 |
+
langchain>=0.3.0,<0.4.0
|
3 |
+
langchain-openai>=0.2.0,<0.3.0
|
4 |
+
langchain-community>=0.3.0,<0.4.0
|
5 |
+
qdrant-client>=1.11.2,<1.12.0
|
6 |
+
pymupdf>=1.24.10,<1.25.0
|
7 |
fastapi
|
8 |
uvicorn[standard]
|
9 |
+
python-dotenv>=1.0.0,<1.1.0
|
10 |
+
marshmallow>=3.19.0,<3.20.0
|
11 |
+
jsonpatch>=1.32,<1.33
|
12 |
+
jiter>=0.4.2,<0.5.0
|