init
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
# Create directories for ChromaDB, SQLite and history database
|
||||
RUN mkdir -p /app/chroma_db /app/history
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Default environment variables for ChromaDB, SQLite and Ollama
|
||||
ENV CHROMA_DB_PATH=/app/chroma_db
|
||||
ENV CHROMA_COLLECTION_NAME=memories
|
||||
ENV SQLITE_DB_PATH=/app/graph_store.db
|
||||
ENV OLLAMA_HOST=http://host.docker.internal:11434
|
||||
ENV OLLAMA_LLM_MODEL=llama3.2
|
||||
ENV OLLAMA_EMBEDDER_MODEL=nomic-embed-text
|
||||
ENV HISTORY_DB_PATH=/app/history/history.db
|
||||
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
Reference in New Issue
Block a user