first commit

This commit is contained in:
jsahn
2026-01-08 15:50:54 +09:00
commit 64b646666f
13 changed files with 1943 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies for sqlite-vec
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY BUGFS_mcp_server.py .
COPY crawl_issues_With_diffs.py .
COPY BM25.py .
COPY embedding.py .
# Create data and logs directories
RUN mkdir -p /app/data /app/logs
# Set environment variables
ENV BUGFS_DATA_DIR=/app/data
ENV BUGFS_LOG_DIR=/app/logs
# Expose port 1026
EXPOSE 1026
# Run the MCP server
CMD ["python", "BUGFS_mcp_server.py", "--host", "0.0.0.0", "--port", "1026"]