alba.saco commited on
Commit
11e3501
1 Parent(s): df66179

update requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +22 -8
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -7,7 +7,16 @@ WORKDIR /code
7
  # COPY ./requirements.txt /code/requirements.txt
8
  # COPY . /code
9
 
10
- RUN apt-get update && apt-get install -y git
 
 
 
 
 
 
 
 
 
11
 
12
  # RUN git clone https://github.com/your-username/your-repository.git .
13
 
@@ -15,30 +24,35 @@ RUN git clone https://albasaco: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@huggingface
15
 
16
  WORKDIR /code/yachtiocraft
17
 
18
- # RUN git submodule update --init --recursive
19
- RUN git submodule update --init
20
- RUN git submodule update --recursive
21
 
22
  # Stage 2
23
 
24
  FROM python:3.10
25
 
26
  # WORKDIR /home/user/app
27
- WORKDIR /code
 
28
 
29
  # Copy files from the builder stage
30
  # COPY --from=builder /home/user/app /home/user/app
31
- COPY --from=builder /code/yachtiocraft /code/yachtiocraft
32
 
33
  # COPY ./requirements.txt /home/user/app/requirements.txt
 
34
 
35
- WORKDIR /code/yachtiocraft
36
 
37
  RUN pip install torch
38
 
39
  RUN pip install wheel
40
 
41
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
42
 
43
  # Set up a new user named "user" with user ID 1000
44
  RUN useradd -m -u 1000 user
 
7
  # COPY ./requirements.txt /code/requirements.txt
8
  # COPY . /code
9
 
10
+ RUN apt-get update && \
11
+ apt-get install -y \
12
+ build-essential \
13
+ cmake \
14
+ libopenblas-dev \
15
+ liblapack-dev \
16
+ libomp-dev
17
+
18
+
19
+ RUN apt-get install -y git
20
 
21
  # RUN git clone https://github.com/your-username/your-repository.git .
22
 
 
24
 
25
  WORKDIR /code/yachtiocraft
26
 
27
+ RUN git submodule update --init --recursive
28
+ # RUN git submodule update --init
29
+ # RUN git submodule update --recursive
30
 
31
  # Stage 2
32
 
33
  FROM python:3.10
34
 
35
  # WORKDIR /home/user/app
36
+ # WORKDIR /code
37
+ WORKDIR /code/yachtiocraft
38
 
39
  # Copy files from the builder stage
40
  # COPY --from=builder /home/user/app /home/user/app
41
+ # COPY --from=builder /code/yachtiocraft /code/yachtiocraft
42
 
43
  # COPY ./requirements.txt /home/user/app/requirements.txt
44
+ COPY requirements.txt .
45
 
46
+ # WORKDIR /code/yachtiocraft
47
 
48
  RUN pip install torch
49
 
50
  RUN pip install wheel
51
 
52
+ RUN pip install --no-cache-dir --upgrade -vvv xformers==0.0.12
53
+
54
+ # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
55
+ RUN python -m pip install --no-cache-dir --upgrade -vvv -r requirements.txt
56
 
57
  # Set up a new user named "user" with user ID 1000
58
  RUN useradd -m -u 1000 user
requirements.txt CHANGED
@@ -15,7 +15,7 @@ torchaudio>=2.0.0
15
  huggingface_hub
16
  tqdm
17
  transformers>=4.31.0 # need Encodec there.
18
- xformers
19
  demucs
20
  librosa
21
  gradio
 
15
  huggingface_hub
16
  tqdm
17
  transformers>=4.31.0 # need Encodec there.
18
+ xformers==0.0.12
19
  demucs
20
  librosa
21
  gradio