Spaces:
Running
on
Zero
Running
on
Zero
Remove Dockerfile
Browse files- Dockerfile +0 -72
Dockerfile
DELETED
|
@@ -1,72 +0,0 @@
|
|
| 1 |
-
FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
|
| 2 |
-
|
| 3 |
-
# Install dependencies
|
| 4 |
-
RUN pip install uv
|
| 5 |
-
|
| 6 |
-
ENV DEBIAN_FRONTEND=noninteractive \
|
| 7 |
-
TZ=Europe/Paris
|
| 8 |
-
|
| 9 |
-
# Remove any third-party apt sources to avoid issues with expiring keys.
|
| 10 |
-
# Install some basic utilities
|
| 11 |
-
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
| 12 |
-
apt-get update && apt-get install -y --no-install-recommends \
|
| 13 |
-
curl \
|
| 14 |
-
ca-certificates \
|
| 15 |
-
sudo \
|
| 16 |
-
git \
|
| 17 |
-
wget \
|
| 18 |
-
procps \
|
| 19 |
-
git-lfs \
|
| 20 |
-
zip \
|
| 21 |
-
unzip \
|
| 22 |
-
htop \
|
| 23 |
-
vim \
|
| 24 |
-
nano \
|
| 25 |
-
bzip2 \
|
| 26 |
-
libx11-6 \
|
| 27 |
-
build-essential \
|
| 28 |
-
libsndfile-dev \
|
| 29 |
-
software-properties-common \
|
| 30 |
-
espeak \
|
| 31 |
-
tmux \
|
| 32 |
-
ffmpeg \
|
| 33 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 34 |
-
|
| 35 |
-
RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
| 36 |
-
apt-get upgrade -y && \
|
| 37 |
-
apt-get install -y --no-install-recommends nvtop
|
| 38 |
-
|
| 39 |
-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
| 40 |
-
apt-get install -y nodejs && \
|
| 41 |
-
npm install -g configurable-http-proxy
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
# Set working directory
|
| 45 |
-
WORKDIR /app
|
| 46 |
-
|
| 47 |
-
# Clone the repository
|
| 48 |
-
RUN git clone https://github.com/Zyphra/Zonos.git && cd Zonos
|
| 49 |
-
|
| 50 |
-
# Set environment variables for writable cache directories
|
| 51 |
-
ENV TRITON_CACHE_DIR=/tmp/.triton
|
| 52 |
-
ENV HF_HOME=/tmp/huggingface_cache
|
| 53 |
-
|
| 54 |
-
# Ensure cache directories are writable
|
| 55 |
-
RUN mkdir -p $TRITON_CACHE_DIR $TRANSFORMERS_CACHE && chmod -R 777 $TRITON_CACHE_DIR $TRANSFORMERS_CACHE
|
| 56 |
-
|
| 57 |
-
# Install Python dependencies
|
| 58 |
-
WORKDIR /app/Zonos
|
| 59 |
-
RUN uv pip install --system -e . && uv pip install --system -e .[compile]
|
| 60 |
-
RUN uv pip install --system spaces
|
| 61 |
-
|
| 62 |
-
# Expose the Gradio default port
|
| 63 |
-
EXPOSE 7860
|
| 64 |
-
|
| 65 |
-
# Run the Gradio app from /app
|
| 66 |
-
WORKDIR /app
|
| 67 |
-
COPY . .
|
| 68 |
-
|
| 69 |
-
EXPOSE 7860
|
| 70 |
-
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 71 |
-
|
| 72 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|