# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Start with a base Python image
FROM python:3.12-slim-bookworm
# Set the working directory in the container
WORKDIR /app
# Copy the pyproject.toml and uv.lock for dependencies
COPY pyproject.toml uv.lock /app/
# Install dependencies
RUN pip install uvicorn 'httpx>=0.28.1' 'mcp>=1.1.2'
# Copy the rest of the application code
COPY src/ /app/src/
# Set environment variables
ENV ALPHA_VANTAGE_API_KEY=${ALPHA_VANTAGE_API_KEY}
# Expose the port that the app runs on
EXPOSE 8000
# Run the application
CMD ["python", "-m", "src.alpha_vantage_mcp.server"]