navjotk commited on
Commit
f94fc74
·
verified ·
1 Parent(s): e220841

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python slim image
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements and install
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy app files
17
+ COPY . .
18
+
19
+ # Expose the port Chainlit uses
20
+ EXPOSE 8000
21
+
22
+ # Run Chainlit app
23
+ CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]