FROM python:3.12-slim WORKDIR /app # install git, clone code, install deps, remove build-time deps RUN apt-get update && \ apt-get install -y --no-install-recommends git && \ git clone --single-branch https://github.com/Sophomoresty/gemini-web2api.git /app && \ pip install --no-cache-dir httpx && \ apt purge -y git && \ apt autoremove -y && \ rm -rf /var/lib/apt/lists/* EXPOSE 8081 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]