mahmdshafee commited on
Commit
c500796
·
verified ·
1 Parent(s): 2a74483

Update Dockerfile

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