MCP-weather-Agent / Dockerfile
algorhythym's picture
Rename runtime.txt to Dockerfile
67623f3 verified
raw
history blame contribute delete
659 Bytes
# Use Python 3.11 base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy your app code
COPY . /app
# Upgrade pip
RUN python -m pip install --upgrade pip
# Install system dependencies (if needed)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install your Python dependencies
RUN pip install --no-cache-dir \
streamlit \
python-dotenv \
langchain-groq>=0.3.2 \
nest-asyncio>=1.6.0 \
httpx \
mcp>=1.6.0 \
mcp-use>=1.2.7
# Expose Streamlit port
EXPOSE 8501
# Default command to run Streamlit app
CMD ["streamlit", "run", "app/app.py", "--server.p]()