stevee00 commited on
Commit
3ff2c8a
·
verified ·
1 Parent(s): 8efccc1

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +47 -0
Dockerfile ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # InteriorFusion Docker Image
2
+ FROM nvidia/cuda:12.1-devel-ubuntu22.04
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Install system dependencies
9
+ RUN apt-get update && apt-get install -y \
10
+ python3.11 python3.11-dev python3.11-venv \
11
+ python3-pip \
12
+ git \
13
+ wget \
14
+ libgl1-mesa-glx \
15
+ libglib2.0-0 \
16
+ libsm6 \
17
+ libxext6 \
18
+ libxrender-dev \
19
+ libgomp1 \
20
+ ffmpeg \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ # Set Python 3.11 as default
24
+ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
25
+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
26
+
27
+ # Upgrade pip
28
+ RUN python -m pip install --upgrade pip setuptools wheel
29
+
30
+ # Set working directory
31
+ WORKDIR /app
32
+
33
+ # Copy requirements first for layer caching
34
+ COPY pyproject.toml .
35
+ RUN pip install -e ".[dev,gs]"
36
+
37
+ # Copy source code
38
+ COPY . .
39
+
40
+ # Pre-download models (optional, speeds up first run)
41
+ # RUN python -c "from interiorfusion.pipelines import InteriorFusionPipeline; InteriorFusionPipeline()"
42
+
43
+ # Expose ports
44
+ EXPOSE 8000 7860
45
+
46
+ # Default command
47
+ CMD ["python", "-m", "interiorfusion.api.main"]