Futuresony commited on
Commit
930977f
·
verified ·
1 Parent(s): 714f684

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /home/user/app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ cmake \
15
+ rsync \
16
+ libgl1-mesa-glx \
17
+ portaudio19-dev && \
18
+ rm -rf /var/lib/apt/lists/*
19
+
20
+ # Install required Python packages
21
+ COPY requirements.txt /tmp/requirements.txt
22
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
23
+
24
+ # Copy the application code into the container
25
+ COPY . /home/user/app
26
+
27
+ # Expose the port that Gradio runs on
28
+ EXPOSE 7860
29
+
30
+ # Command to run the application
31
+ CMD ["python", "app.py"]