Looks like Huggingface will kill specific Docker command when create space

It worked perfect before, and I think there is a bug or on purpose thing which in the way of it;


FROM monius/docker-ai-infra

USER infra

RUN /usr/bin/mamba run pip install --no-cache-dir huggingface_hub[hf_transfer] pyarrow --quiet

COPY --chown=infra . /opt/run/

CMD ["ai-infra"]

hi @Mon-ius could you please share a bit more? did your Space run out of memory?

no, it’s not run out of mem, I think hf adjust the space policy months ago. Thus as a none-root user cannot perform some ops directly on the Dockerfile.

I debugs hours and figured it out, now I fix it in myside