rak-301 commited on
Commit
caa14c3
·
verified ·
1 Parent(s): fc30487

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -14
Dockerfile CHANGED
@@ -1,26 +1,18 @@
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
4
- # Set the working directory
5
- WORKDIR /app
6
-
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Install any needed packages specified in requirements.txt
11
- RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Install Chainlit
14
  RUN pip install chainlit
15
 
 
 
 
16
  # Make port 8000 available to the world outside this container
17
  EXPOSE 8000
18
 
19
- # Define environment variable for files directory
20
- ENV FILES_DIRECTORY=/app/files
21
-
22
- # Create the files directory
23
- RUN mkdir -p /app/files
24
-
25
  # Run Chainlit app
26
  CMD ["chainlit", "run", "app.py", "-w", "--port", "8000"]
 
1
  # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
4
+ COPY requirements.txt ./
5
+ RUN python -m pip install --upgrade pip
6
+ RUN python -m pip install -r requirements.txt
 
 
 
 
 
7
 
8
  # Install Chainlit
9
  RUN pip install chainlit
10
 
11
+ # Copy all the files from the current directory to the container
12
+ COPY . .
13
+
14
  # Make port 8000 available to the world outside this container
15
  EXPOSE 8000
16
 
 
 
 
 
 
 
17
  # Run Chainlit app
18
  CMD ["chainlit", "run", "app.py", "-w", "--port", "8000"]