Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +37 -0
Dockerfile
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use official Python image
|
2 |
+
FROM python:3.10
|
3 |
+
|
4 |
+
# Set working directory
|
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 |
+
&& rm -rf /var/lib/apt/lists/* \
|
18 |
+
&& git lfs install
|
19 |
+
|
20 |
+
# Upgrade pip
|
21 |
+
RUN pip install --no-cache-dir --upgrade pip
|
22 |
+
|
23 |
+
# Install dependencies
|
24 |
+
COPY requirements.txt .
|
25 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
26 |
+
|
27 |
+
# Install LLaVA from GitHub
|
28 |
+
RUN pip install --no-cache-dir git+https://github.com/haotian-liu/LLaVA.git
|
29 |
+
|
30 |
+
# Copy app files
|
31 |
+
COPY . .
|
32 |
+
|
33 |
+
# Expose necessary port (if applicable)
|
34 |
+
EXPOSE 7860
|
35 |
+
|
36 |
+
# Command to run the app
|
37 |
+
CMD ["python", "app.py"]
|