Kossisoroyce commited on
Commit
0832007
·
verified ·
1 Parent(s): 6269547

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. src/model/Dockerfile +26 -0
src/model/Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Streamlit RAG Compliance Demo Dockerfile
2
+ # Build with: docker build -t vxdf-compliance-demo use_case/
3
+ # Run with: docker run --env-file .env -p 8501:8501 vxdf-compliance-demo
4
+
5
+ FROM python:3.10-slim
6
+
7
+ # Install OS deps (for pdfplumber -> pdfminer.six -> cryptography etc.)
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ poppler-utils \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ WORKDIR /app
14
+
15
+ # requirements first for caching
16
+ COPY requirements.txt ./requirements.txt
17
+ RUN pip install --no-cache-dir --upgrade pip \
18
+ && pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy application code
21
+ COPY . /app
22
+
23
+ EXPOSE 8501
24
+
25
+ # Streamlit launches on 8501 by default
26
+ CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]