-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 837 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
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Install uv - the recommended Python package installer
RUN pip install uv
# Copy dependency definitions
COPY pyproject.toml uv.lock README.md .
# Install project dependencies using uv based on the lock file
RUN uv sync
# Copy the rest of the application code
COPY src .
# Make port 8000 available to the world outside this container
# Assuming FastMCP runs on port 8000 by default (common for FastAPI/Uvicorn)
EXPOSE 8000
# Define environment variables needed by the application
# These should be provided at runtime, not hardcoded
ENV DEEPSET_API_KEY=""
ENV DEEPSET_WORKSPACE=""
# Set PYTHONUNBUFFERED to ensure logs are output immediately
ENV PYTHONUNBUFFERED=1
CMD ["uv", "run", "deepset-mcp"]