arjunbroepic commited on
Commit
2b26be4
·
verified ·
1 Parent(s): eb2daf6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python base image with build tools
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies (build-essential for gcc/make)
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ cmake \
8
+ git \
9
+ libsndfile1 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ WORKDIR /app
13
+
14
+ # Clone the repository
15
+ RUN git clone https://github.com/kdrkdrkdr/MossTTS-Nano.c .
16
+
17
+ # Build the C project
18
+ # Note: Adjust the 'make' command based on the repo's specific Makefile
19
+ # Usually, it's just 'make' or 'cmake .' then 'make'
20
+ RUN make
21
+
22
+ # Install Gradio for the web interface
23
+ RUN pip install gradio numpy
24
+
25
+ # Copy your wrapper script (created in next step)
26
+ COPY app.py .
27
+
28
+ # Ensure the binary is executable
29
+ RUN chmod +x ./moss_nano # Replace with the actual binary name from the repo
30
+
31
+ # Expose the port HF Spaces uses
32
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
33
+ CMD ["python", "app.py"]