Technocoloredgeek commited on
Commit
a604602
1 Parent(s): 12010cb

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file into the container
8
+ COPY requirements.txt .
9
+
10
+ # Install the required packages
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy the current directory contents into the container at /app
14
+ COPY . .
15
+
16
+ # Set environment variables
17
+ ENV OPENAI_API_KEY=${OPENAI_API_KEY}
18
+
19
+ # Expose the port Chainlit will run on
20
+ EXPOSE 8000
21
+
22
+ # Command to run the application
23
+ CMD ["chainlit", "run", "app.py", "--port", "8000"]