-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 777 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (25 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# System dependencies (pyautogui, clipboard, etc.)
RUN apt-get update && apt-get install -y \
build-essential \
libglib2.0-0 \
libsm6 \
libxrender1 \
libxext6 \
x11-utils \
xclip \
&& rm -rf /var/lib/apt/lists/*
# Copy all files
COPY . .
# Install dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Pre-warm sentence-transformers model (optional)
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
# Set env var to reduce buffering (nice for real-time logging)
ENV PYTHONUNBUFFERED=1
# Default run command (can be overridden in docker-compose)
CMD ["python", "src/sql_mcp.py"]