rajsecrets0 commited on
Commit
e6bd9a0
·
verified ·
1 Parent(s): 9daf8d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,10 +1,8 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
4
- # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Copy the current directory contents into the container at /app
8
  COPY . /app
9
 
10
  # Install system dependencies
@@ -20,8 +18,8 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  RUN useradd -m myuser && chown -R myuser:myuser /app
21
  USER myuser
22
 
23
- # Make port 7860 available to the world outside this container
24
  EXPOSE 7860
25
 
26
- # Run app.py when the container launches
27
  CMD ["chainlit", "run", "app.py", "--port", "7860"]
 
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # Copy all files
6
  COPY . /app
7
 
8
  # Install system dependencies
 
18
  RUN useradd -m myuser && chown -R myuser:myuser /app
19
  USER myuser
20
 
21
+ # Expose port 7860
22
  EXPOSE 7860
23
 
24
+ # Run the app
25
  CMD ["chainlit", "run", "app.py", "--port", "7860"]