# Use the official Python lightweight image
FROM python:3.13-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install the project into /app
COPY . /app
WORKDIR /app
# Allow statements and log messages to immediately appear in the logs
ENV PYTHONUNBUFFERED=1
ENV PORT=8080
# Install dependencies
RUN uv sync
#ENV PORT=8000
EXPOSE $PORT
RUN echo "⏳ Building image with PORT=${PORT}"
# Run the FastMCP server
CMD ["uv", "run", "server.py"]