AItoolstack commited on
Commit
5a729af
·
verified ·
1 Parent(s): e67486b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -24
Dockerfile CHANGED
@@ -1,24 +1,25 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /code
4
-
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- libgl1-mesa-glx \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # Install Python dependencies
12
- COPY requirements.txt .
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Copy app code
16
- COPY . .
17
-
18
- # Expose port
19
- EXPOSE 7860
20
-
21
- ENV PATH="/root/.local/bin:$PATH"
22
-
23
- # Run FastAPI app with uvicorn
24
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /code
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ libgl1-mesa-glx \
9
+ libglib2.0-0 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy app code
17
+ COPY . .
18
+
19
+ # Expose port
20
+ EXPOSE 7860
21
+
22
+ ENV PATH="/root/.local/bin:$PATH"
23
+
24
+ # Run FastAPI app with uvicorn
25
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]