Loading MCP_module/Dummy_backend/Dockerfile +22 −0 Original line number Diff line number Diff line # Use an official Python runtime as a parent image FROM python:3.11-slim # Set working directory WORKDIR /app # Copy requirements first (for efficient caching) COPY requirements.txt . # Install dependencies RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt # Copy the rest of the application COPY . . # Use environment variables for configuration # (Defaults can be overridden via docker run or compose) ENV API_HOST=0.0.0.0 ENV API_PORT=8081 # Command to run the API CMD ["python", "app.py"] Loading
MCP_module/Dummy_backend/Dockerfile +22 −0 Original line number Diff line number Diff line # Use an official Python runtime as a parent image FROM python:3.11-slim # Set working directory WORKDIR /app # Copy requirements first (for efficient caching) COPY requirements.txt . # Install dependencies RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt # Copy the rest of the application COPY . . # Use environment variables for configuration # (Defaults can be overridden via docker run or compose) ENV API_HOST=0.0.0.0 ENV API_PORT=8081 # Command to run the API CMD ["python", "app.py"]