zeno-ml/diffusiondb
16
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.85 6RUN useradd -m -u 1000 user7USER user8# Set home to the user's home directory9ENV HOME=/home/user \10 PATH=/home/user/.local/bin:$PATH11WORKDIR $HOME/app12# Copy the current directory contents into the container at $HOME/app setting the owner to the user13COPY --chown=user . $HOME/app14ADD --chown=user ./.zeno_cache $HOME/app/.zeno_cache15RUN chown user:user -R $HOME/app16 17COPY ./requirements.txt /code/requirements.txt18 19RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt20 21 22CMD ["zeno", "config.toml"]