CoolFace
Apppublic

mitudesk/uma_diffsvc

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
0likes
Dockerfile30 linesDownload Raw Back to root
1FROM misakiminato/cuda-python:cu12.0.0-py3.8.16-devel-ubuntu18.042WORKDIR /app3 4COPY ./requirements.txt /app/requirements.txt5COPY ./packages.txt /app/packages.txt6RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html7RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*8RUN pip3 install --no-cache-dir -r /app/requirements.txt9 10 11# Set up a new user named "user" with user ID 100012RUN useradd -m -u 1000 user13 14# Switch to the "user" user15USER user16 17# Set home to the user's home directory18ENV HOME=/home/user \19	PATH=/home/user/.local/bin:$PATH20 21# Set the working directory to the user's home directory22WORKDIR $HOME/app23 24# Copy the current directory contents into the container at $HOME/app setting the owner to the user25COPY --chown=user . $HOME/app26 27 28EXPOSE 850129CMD streamlit run app.py --server.maxUploadSize 1024 --server.enableWebsocketCompression=false --server.enableXsrfProtection=false30