FROM shadowv2/int-driver:latest EXPOSE 8000 # Install Python + venv tools RUN apt-get update && apt-get install -y python3 python3-venv python3-pip # Create a virtual environment RUN python3 -m venv /opt/venv # Activate venv for all future commands ENV PATH="/opt/venv/bin:$PATH" # Install FastAPI inside venv COPY requirements.txt /requirements.txt RUN pip install --no-cache-dir -r /requirements.txt # Copy app COPY main.py /main.py # Run FastAPI + shadow driver ENTRYPOINT ["python3", "/main.py"]