Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -42
Dockerfile
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
|
2 |
-
|
3 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
-
|
5 |
-
# Set the MKL_THREADING_LAYER environment variable to GNU
|
6 |
-
ENV MKL_THREADING_LAYER=GNU
|
7 |
-
|
8 |
-
RUN apt-get update && apt-get install -y git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev build-essential cmake aria2
|
9 |
-
|
10 |
-
RUN useradd -m -u 1000 user
|
11 |
-
|
12 |
-
USER user
|
13 |
-
|
14 |
-
ENV HOME=/home/user \
|
15 |
-
PATH=/home/user/.local/bin:$PATH \
|
16 |
-
PYTHONPATH=$HOME/app \
|
17 |
-
PYTHONUNBUFFERED=1 \
|
18 |
-
GRADIO_ALLOW_FLAGGING=never \
|
19 |
-
GRADIO_NUM_PORTS=1 \
|
20 |
-
GRADIO_SERVER_NAME=0.0.0.0 \
|
21 |
-
GRADIO_THEME=huggingface \
|
22 |
-
GRADIO_SHARE=False \
|
23 |
-
SYSTEM=spaces
|
24 |
-
|
25 |
-
# Set the working directory to the user's home directory
|
26 |
-
WORKDIR $HOME/app
|
27 |
-
|
28 |
-
RUN git clone -b magnet https://github.com/camenduru/audiocraft $HOME/app
|
29 |
-
|
30 |
-
# Install dependencies
|
31 |
-
RUN pip install -q av julius omegaconf einops num2words flashy torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121 torchmetrics sentencepiece gradio
|
32 |
-
RUN pip install -q https://github.com/camenduru/wheels/releases/download/colab/xformers-0.0.20+1dc3d7a.d20240115-cp310-cp310-linux_x86_64.whl
|
33 |
-
RUN pip install -q .
|
34 |
-
|
35 |
-
#COPY app.py .
|
36 |
-
|
37 |
-
# Set the environment variable to specify the GPU device
|
38 |
-
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
39 |
-
ENV CUDA_VISIBLE_DEVICES=0
|
40 |
-
|
41 |
-
# Run the Python script
|
42 |
-
CMD ["python", "-m", "demos.magnet_app", "--share"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|