# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* # Copy the requirements file COPY requirements.txt . # We upgrade pip/setuptools/wheel first, then install the core. RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code COPY . . # Expose port 8000 EXPOSE 8000 # Command to run the OpenEnv server CMD ["uvicorn", "env:app", "--host", "0.0.0.0", "--port", "8000"]