Nighty3912 commited on
Commit
0aa3655
·
verified ·
1 Parent(s): 4b453e9

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -40
Dockerfile DELETED
@@ -1,40 +0,0 @@
1
- # Use the official Python image as base
2
- FROM python:3.10-slim
3
-
4
- # Avoid prompts during builds
5
- ENV DEBIAN_FRONTEND=noninteractive
6
-
7
- # Set workdir
8
- WORKDIR /app
9
-
10
- # Install system dependencies
11
- RUN apt-get update && apt-get install -y \
12
- git \
13
- build-essential \
14
- ffmpeg \
15
- libglib2.0-0 \
16
- libsm6 \
17
- libxext6 \
18
- libxrender-dev \
19
- && rm -rf /var/lib/apt/lists/*
20
-
21
- # Upgrade pip and install build tools early to avoid CLIP build issues
22
- RUN pip install --upgrade pip setuptools wheel build
23
-
24
- # Preinstall OpenAI CLIP from GitHub to avoid setup.py error
25
- RUN pip install git+https://github.com/openai/CLIP.git
26
-
27
- # Copy the rest of your dependencies
28
- COPY requirements.txt .
29
-
30
- # Install remaining Python dependencies
31
- RUN pip install --no-cache-dir -r requirements.txt
32
-
33
- # Copy your app code (optional - assuming you have app.py or similar)
34
- COPY . .
35
-
36
- # Expose gradio on port 7860 (Hugging Face auto-detects this)
37
- EXPOSE 7860
38
-
39
- # Start Gradio app (adjust this if your main file is different)
40
- CMD ["python", "app.py"]