Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a lightweight Python base image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Install git so we can clone the repo
|
5 |
+
RUN apt-get update && apt-get install -y git
|
6 |
+
|
7 |
+
# Create a working directory
|
8 |
+
WORKDIR /app
|
9 |
+
|
10 |
+
# Clone the 3d-genesis-v2 repository
|
11 |
+
RUN git clone https://github.com/charbelmalo/3d-genesis-v2.git
|
12 |
+
|
13 |
+
# Change into the cloned directory
|
14 |
+
WORKDIR /app/3d-genesis-v2
|
15 |
+
|
16 |
+
# Upgrade pip and install required Python packages
|
17 |
+
# (Adjust if the repo has a specific requirements file name)
|
18 |
+
RUN pip install --no-cache-dir --upgrade pip
|
19 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
20 |
+
|
21 |
+
# Expose the default Gradio port
|
22 |
+
EXPOSE 7860
|
23 |
+
|
24 |
+
# Replace 'app.py' with the actual Gradio script from the repo
|
25 |
+
CMD ["python", "app.py"]
|