Spaces:
Runtime error
Runtime error
anik jha commited on
Commit ·
e847b4c
1
Parent(s): fb0682f
updated docker to install req.txt
Browse files- Dockerfile +5 -1
- requirements.txt +38 -0
Dockerfile
CHANGED
|
@@ -33,7 +33,11 @@ RUN pip install --no-cache-dir \
|
|
| 33 |
markdown \
|
| 34 |
requests \
|
| 35 |
Pillow
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
# Create a non-root user
|
| 38 |
RUN useradd -m -u 1000 appuser && \
|
| 39 |
chown -R appuser:appuser /app
|
|
|
|
| 33 |
markdown \
|
| 34 |
requests \
|
| 35 |
Pillow
|
| 36 |
+
# Copy requirements and install Python dependencies
|
| 37 |
+
COPY requirements.txt .
|
| 38 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
| 39 |
+
pip install --no-cache-dir -r requirements.txt
|
| 40 |
+
|
| 41 |
# Create a non-root user
|
| 42 |
RUN useradd -m -u 1000 appuser && \
|
| 43 |
chown -R appuser:appuser /app
|
requirements.txt
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Shared dependencies
|
| 2 |
+
Flask==3.1.1
|
| 3 |
+
beautifulsoup4==4.13.4
|
| 4 |
+
PyPDF2==3.0.1
|
| 5 |
+
python-dotenv==1.1.1
|
| 6 |
+
requests==2.32.4
|
| 7 |
+
markdown2==2.4.12
|
| 8 |
+
weasyprint==62.3
|
| 9 |
+
tqdm==4.67.1
|
| 10 |
+
|
| 11 |
+
# Gemini (Google Generative AI)
|
| 12 |
+
google-ai-generativelanguage==0.6.15
|
| 13 |
+
google-api-core==2.25.1
|
| 14 |
+
google-api-python-client==2.176.0
|
| 15 |
+
google-auth==2.40.3
|
| 16 |
+
google-auth-httplib2==0.2.0
|
| 17 |
+
google-generativeai==0.8.5
|
| 18 |
+
googleapis-common-protos==1.70.0
|
| 19 |
+
grpcio==1.73.1
|
| 20 |
+
grpcio-status==1.71.2
|
| 21 |
+
httplib2==0.22.0
|
| 22 |
+
proto-plus==1.26.1
|
| 23 |
+
protobuf==5.29.5
|
| 24 |
+
pyasn1==0.6.1
|
| 25 |
+
pyasn1_modules==0.4.2
|
| 26 |
+
pydantic==2.11.7
|
| 27 |
+
pydantic_core==2.33.2
|
| 28 |
+
pyparsing==3.2.3
|
| 29 |
+
rsa==4.9.1
|
| 30 |
+
soupsieve==2.7
|
| 31 |
+
typing-inspection==0.4.1
|
| 32 |
+
typing_extensions==4.14.1
|
| 33 |
+
uritemplate==4.2.0
|
| 34 |
+
Werkzeug==3.1.3
|
| 35 |
+
|
| 36 |
+
# Gemma (vLLM)
|
| 37 |
+
# vllm
|
| 38 |
+
# torch
|