| FROM moltbot/moltbot:latest | |
| # Switch to root to install python and manage /root | |
| USER root | |
| # Install Python3, Pip, and required tools | |
| RUN apt-get update && \ | |
| apt-get install -y python3 python3-pip && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Install Supabase client | |
| RUN pip3 install supabase --break-system-packages | |
| # Copy scripts to the container | |
| COPY sync_memory.py /app/sync_memory.py | |
| COPY entrypoint.sh /entrypoint.sh | |
| # Ensure the entrypoint is executable | |
| RUN chmod +x /entrypoint.sh | |
| # Explicitly expose the port | |
| EXPOSE 7860 | |
| # Set the custom entrypoint | |
| ENTRYPOINT ["/entrypoint.sh"] |