FROM ghcr.io/nesquena/hermes-webui@sha256:48ba6ee4a837079955c00e997b751065cc0324ae6eaa0f2fec592c8f4b2a746e

COPY hermes_requirements.py /usr/local/bin/hermes_requirements.py
COPY patch_entrypoint.py /tmp/patch_entrypoint.py

RUN python3 /tmp/patch_entrypoint.py /hermeswebui_init.bash \
    && python3 /tmp/patch_entrypoint.py /apptoo/docker_init.bash \
    && rm /tmp/patch_entrypoint.py \
    && chmod 0555 /usr/local/bin/hermes_requirements.py
