CoolFace
Apppublic

diffusers/benchmark-pt2.1

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile33 linesDownload Raw Back to root
1FROM diffusers/diffusers-pytorch-compile-cuda2 3WORKDIR /code4 5COPY ./requirements.txt /code/requirements.txt6 7RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt8 9# Set up a new user named "user" with user ID 100010RUN useradd -m -u 1000 user11 12# Switch to the "user" user13USER user14 15# Set home to the user's home directory16ENV HOME=/home/user \17    PATH=/home/user/.local/bin:$PATH18 19# Set the working directory to the user's home directory20WORKDIR $HOME/app21 22# Copy the current directory contents into the container at $HOME/app setting the owner to the user23COPY --chown=user . $HOME/app24 25ENV PYTHONPATH=${HOME}/app \26    PYTHONUNBUFFERED=1 \27    GRADIO_ALLOW_FLAGGING=never \28    GRADIO_NUM_PORTS=1 \29    GRADIO_SERVER_NAME=0.0.0.0 \30    GRADIO_THEME=huggingface \31    SYSTEM=spaces32 33CMD ["python", "app.py"]