FROM python:3.10-slim # Install dependencies RUN apt update \ && apt install -y \ git \ curl \ sudo \ python3-dev \ python3-pip \ python3-venv \ uuid-runtime \ openssh-server # Create Venv RUN /bin/python3 -m venv .composio/venv # Setup path RUN export PATH=$PATH:$(pwd)/.composio/venv/bin # Install dependency RUN python -m pip install fastapi playwright uvicorn # Install playwright deps RUN playwright install-deps # Install playwright binaries RUN playwright install chromium # Set working dir WORKDIR /root # Copy source COPY ./composio /root/composio # Install from source RUN python -m pip install /root/composio[all] --force-reinstall # Remove cache RUN rm -rf /root/composio/ # Setup user RUN useradd -rm -d /home/user -s /bin/bash -g root -G sudo -u 1000 user # Define entry point COPY entrypoint.sh /root/entrypoint.sh # Run entrypoint.sh ENTRYPOINT [ "/root/entrypoint.sh" ]