dshamika commited on
Commit
a92ad93
·
verified ·
1 Parent(s): 3d8cf93

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ curl \
8
+ ffmpeg \
9
+ libsm6 \
10
+ libxext6 \
11
+ cmake \
12
+ rsync \
13
+ libgl1-mesa-glx \
14
+ && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
15
+ && apt-get install -y git-lfs \
16
+ && git lfs install \
17
+ && rm -rf /var/lib/apt/lists/*
18
+
19
+ # Set workdir
20
+ WORKDIR /app
21
+
22
+ # Copy files
23
+ COPY . /app
24
+
25
+ # Install Python packages
26
+ RUN pip install --upgrade pip
27
+ RUN pip install -r requirements.txt
28
+
29
+ # Expose Gradio port
30
+ EXPOSE 7860
31
+
32
+ # Run Hugging Face Space
33
+ CMD ["python", "app.py"]