Turbiling commited on
Commit
e250e4d
·
verified ·
1 Parent(s): 5a216fe

Create Dockerfile

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