eesfeg commited on
Commit
52bd739
·
1 Parent(s): bc7e2c6
deepseek_dockerfile_20251226_58f521.dockerfile DELETED
@@ -1,17 +0,0 @@
1
- # Dockerfile
2
- FROM python:3.9-slim
3
-
4
- WORKDIR /app
5
-
6
- # Install dependencies
7
- COPY requirements.txt .
8
- RUN pip install --no-cache-dir -r requirements.txt
9
-
10
- # Copy application
11
- COPY . .
12
-
13
- # Expose port
14
- EXPOSE 8000
15
-
16
- # Run the application
17
- CMD ["python", "api_fastapi.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dockerfile DELETED
@@ -1,17 +0,0 @@
1
- # Dockerfile
2
- FROM python:3.9-slim
3
-
4
- WORKDIR /app
5
-
6
- # Install dependencies
7
- COPY requirements.txt .
8
- RUN pip install --no-cache-dir -r requirements.txt
9
-
10
- # Copy application
11
- COPY . .
12
-
13
- # Expose port
14
- EXPOSE 8000
15
-
16
- # Run the application
17
- CMD ["python", "api_fastapi.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dockerfile.dockerfile CHANGED
@@ -1,9 +1,21 @@
1
- # requirements.txt
2
- torch==2.1.0
3
- transformers==4.35.0
4
- accelerate==0.24.1
5
- fastapi==0.104.1
6
- uvicorn[standard]==0.24.0
7
- gradio==4.8.0
8
- sentencepiece==0.1.99
9
- bitsandbytes==0.41.1
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Copy requirements first for better caching
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the rest of the app
15
+ COPY . .
16
+
17
+ # Expose port
18
+ EXPOSE 7860
19
+
20
+ # Run the app
21
+ CMD ["python", "app.py"]