sanch1txp commited on
Commit
c599fb7
·
verified ·
1 Parent(s): c67e97a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg tmux git curl unzip gcc \
6
+ && apt-get clean
7
+
8
+ # Set work directory
9
+ WORKDIR /app
10
+
11
+ # Clone the external repo
12
+ RUN git clone https://github.com/sanch1tt/ML.git ./ML
13
+
14
+ # Give full permission to repo
15
+ RUN chmod -R 777 ./ML
16
+
17
+ # Copy local files like start.sh and requirements.txt
18
+ COPY start.sh requirements.txt ./
19
+
20
+ # Install Python dependencies
21
+ RUN pip install --upgrade pip setuptools wheel
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+
24
+ # Expose FastAPI port
25
+ EXPOSE 7860
26
+
27
+ # Make start.sh executable
28
+ RUN chmod +x start.sh
29
+
30
+ CMD ["./start.sh"]