listen2you003 commited on
Commit
be0aca3
·
1 Parent(s): e74c01b

remove dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -48
Dockerfile DELETED
@@ -1,48 +0,0 @@
1
- FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
-
3
- ARG DEBIAN_FRONTEND=noninteractive
4
-
5
- ENV PYTHONUNBUFFERED=1
6
-
7
- RUN apt-get update && apt-get install --no-install-recommends -y \
8
- build-essential \
9
- python3.10 \
10
- python3-pip \
11
- python3.10-dev \
12
- git \
13
- ffmpeg \
14
- && apt-get clean && rm -rf /var/lib/apt/lists/*
15
-
16
- WORKDIR /code
17
-
18
- COPY ./requirements.txt /code/requirements.txt
19
- COPY ./get_flash_attn.py /code/get_flash_attn.py
20
-
21
- # Set up a new user named "user" with user ID 1000
22
- RUN useradd -m -u 1000 user
23
- # Switch to the "user" user
24
- USER user
25
- # Set home to the user's home directory
26
- ENV HOME=/home/user \
27
- PATH=/home/user/.local/bin:$PATH \
28
- PYTHONPATH=$HOME/app \
29
- PYTHONUNBUFFERED=1 \
30
- GRADIO_ALLOW_FLAGGING=never \
31
- GRADIO_NUM_PORTS=1 \
32
- GRADIO_SERVER_NAME=0.0.0.0 \
33
- GRADIO_THEME=huggingface \
34
- SYSTEM=spaces
35
- RUN pip uninstall torch torchvision torchaudio
36
- RUN pip3 uninstall torch torchvision torchaudio
37
- # RUN pip3 install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
38
- RUN pip3 install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
39
- RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
40
- RUN pip3 install gradio
41
- RUN pip3 install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.2.post1/flash_attn-2.7.2.post1+cu12torch2.3cxx11abiFALSE-cp310-cp310-linux_x86_64.whl --no-cache-dir
42
- # Set the working directory to the user's home directory
43
- WORKDIR $HOME/app
44
-
45
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
46
- COPY --chown=user . $HOME/app
47
-
48
- CMD ["python3", "app.py"]