Pijush2023 commited on
Commit
7c1492a
·
verified ·
1 Parent(s): 7b3d674

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -60
Dockerfile DELETED
@@ -1,60 +0,0 @@
1
- # FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
- FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- RUN apt-get update && \
5
- apt-get upgrade -y && \
6
- apt-get install -y --no-install-recommends \
7
- git \
8
- git-lfs \
9
- wget \
10
- curl \
11
- # python build dependencies \
12
- build-essential \
13
- libssl-dev \
14
- zlib1g-dev \
15
- libbz2-dev \
16
- libreadline-dev \
17
- libsqlite3-dev \
18
- libncursesw5-dev \
19
- xz-utils \
20
- tk-dev \
21
- libxml2-dev \
22
- libxmlsec1-dev \
23
- libffi-dev \
24
- liblzma-dev \
25
- # gradio dependencies \
26
- ffmpeg \
27
- # fairseq2 dependencies \
28
- libsndfile-dev && \
29
- apt-get clean && \
30
- rm -rf /var/lib/apt/lists/*
31
-
32
- RUN useradd -m -u 1000 user
33
- USER user
34
- ENV HOME=/home/user \
35
- PATH=/home/user/.local/bin:${PATH}
36
- WORKDIR ${HOME}/app
37
-
38
- RUN curl https://pyenv.run | bash
39
- ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
40
- ARG PYTHON_VERSION=3.10.13
41
- RUN pyenv install ${PYTHON_VERSION} && \
42
- pyenv global ${PYTHON_VERSION} && \
43
- pyenv rehash && \
44
- pip install --no-cache-dir -U pip setuptools wheel && \
45
- git clone https://github.com/fakerybakery/metavoice-src ${HOME}/app/gitrepo && \
46
- cp -r ${HOME}/app/gitrepo/* ${HOME}/app
47
- RUN pip install packaging && \
48
- pip install -r ${HOME}/app/requirements.txt && \
49
- pip install -U flash-attn gradio spacy transformers fastapi
50
- ENV PYTHONPATH=${HOME}/app \
51
- PYTHONUNBUFFERED=1 \
52
- # HF_HUB_ENABLE_HF_TRANSFER=1 \
53
- GRADIO_ALLOW_FLAGGING=never \
54
- GRADIO_NUM_PORTS=1 \
55
- GRADIO_SERVER_NAME=0.0.0.0 \
56
- GRADIO_THEME=huggingface \
57
- TQDM_POSITION=-1 \
58
- TQDM_MININTERVAL=1 \
59
- SYSTEM=spaces
60
- CMD python fam/llm/serving.py --huggingface_repo_id="metavoiceio/metavoice-1B-v0.1" & python fam/ui/app.py