Ahmed766 commited on
Commit
283d4cd
·
verified ·
1 Parent(s): 43d6634

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AutoSEO Engine - Docker Support
2
+
3
+ FROM python:3.11-slim
4
+
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ gcc \
10
+ g++ \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy requirements and install Python dependencies
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy the rest of the application
18
+ COPY . .
19
+
20
+ # Expose port for the API
21
+ EXPOSE 8000
22
+
23
+ # Run the API server
24
+ CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000"]