Compare commits
No commits in common. "90782c867f4193ec2596a6212af5246b308adc71" and "b128d98d52249ad9fae9406cb3f39654bb26a46d" have entirely different histories.
90782c867f
...
b128d98d52
3 changed files with 1 additions and 50 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,22 +0,0 @@
|
||||||
FROM python:3.11-slim
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PYTHONUNBUFFERED=1 \
|
|
||||||
HF_HUB_DISABLE_SYMLINKS_WARNING=1
|
|
||||||
|
|
||||||
# Install CPU-only torch first (sentence-transformers' default install otherwise pulls the
|
|
||||||
# much larger CUDA-enabled build, which is unnecessary for this CPU-only prototype).
|
|
||||||
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
|
|
||||||
|
|
||||||
COPY requirements.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
COPY app/ app/
|
|
||||||
COPY ui/ ui/
|
|
||||||
COPY eval/ eval/
|
|
||||||
|
|
||||||
EXPOSE 8501
|
|
||||||
|
|
||||||
CMD ["streamlit", "run", "ui/streamlit_app.py", "--server.address=0.0.0.0", "--server.port=8501"]
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
services:
|
|
||||||
ollama:
|
|
||||||
image: ollama/ollama:latest
|
|
||||||
container_name: policy-assistant-ollama
|
|
||||||
ports:
|
|
||||||
- "11434:11434"
|
|
||||||
volumes:
|
|
||||||
- ollama_models:/root/.ollama
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
app:
|
|
||||||
build: .
|
|
||||||
container_name: policy-assistant-app
|
|
||||||
depends_on:
|
|
||||||
- ollama
|
|
||||||
environment:
|
|
||||||
OLLAMA_MODEL: ${OLLAMA_MODEL:-llama3.2:3b}
|
|
||||||
OLLAMA_BASE_URL: http://ollama:11434
|
|
||||||
ports:
|
|
||||||
- "8501:8501"
|
|
||||||
volumes:
|
|
||||||
- app_data:/app/app/data
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
ollama_models:
|
|
||||||
app_data:
|
|
||||||
|
|
@ -10,4 +10,4 @@ streamlit==1.67.0
|
||||||
pydantic==2.14.3
|
pydantic==2.14.3
|
||||||
python-dotenv==1.2.4
|
python-dotenv==1.2.4
|
||||||
pytest==9.2.0
|
pytest==9.2.0
|
||||||
numpy==2.4.6
|
numpy==2.5.4
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue