thecollabagepatch commited on
Commit
a9681c3
1 Parent(s): 0383a2d

trying with dockerfile

Browse files
Files changed (4) hide show
  1. Dockerfile +18 -0
  2. README.md +1 -1
  3. build.sh +0 -11
  4. packages.txt +0 -1
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM huggingface/gradio-gpu:4.23.0
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y fluidsynth
6
+
7
+ # Copy the FluidR3_GM.sf2 file
8
+ RUN cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2
9
+
10
+ # Install Python dependencies
11
+ COPY requirements.txt .
12
+ RUN pip install -r requirements.txt
13
+
14
+ # Copy the app files
15
+ COPY . .
16
+
17
+ # Run the app
18
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -5,7 +5,7 @@ colorFrom: red
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.23.0
8
- build_script: build.sh
9
  app_file: app.py
10
  pinned: false
11
  license: mit
 
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.23.0
8
+ dockerfile: Dockerfile
9
  app_file: app.py
10
  pinned: false
11
  license: mit
build.sh DELETED
@@ -1,11 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Install system dependencies
4
- apt-get update
5
- apt-get install -y fluidsynth
6
-
7
- # Copy the FluidR3_GM.sf2 file
8
- cp /usr/share/sounds/sf2/FluidR3_GM.sf2 ./font.sf2
9
-
10
- # Install Python dependencies
11
- pip install -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
packages.txt DELETED
@@ -1 +0,0 @@
1
- fluidsynth