Rulga commited on
Commit
ef5ef96
·
1 Parent(s): 1fc15a8

Add Dockerfile for containerization and update README for SDK casing

Browse files
Files changed (2) hide show
  1. Dockerfile +23 -0
  2. README.md +1 -1
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ curl \
9
+ software-properties-common \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements first to leverage Docker cache
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the rest of the application
17
+ COPY . .
18
+
19
+ # Make port 8000 available to the world outside this container
20
+ EXPOSE 8000
21
+
22
+ # Run the application
23
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
README.md CHANGED
@@ -3,7 +3,7 @@ title: 'Doc LS Chatbot '
3
  emoji: 🔥
4
  colorFrom: yellow
5
  colorTo: yellow
6
- sdk: Docker
7
  sdk_version: 1.42.2
8
  app_file: app.py
9
  pinned: false
 
3
  emoji: 🔥
4
  colorFrom: yellow
5
  colorTo: yellow
6
+ sdk: docker
7
  sdk_version: 1.42.2
8
  app_file: app.py
9
  pinned: false