Turbiling commited on
Commit
372c82c
·
verified ·
1 Parent(s): f6b0f45

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -2,16 +2,20 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
 
 
7
  RUN mkdir -p /app/.chainlit && chmod -R 777 /app/.chainlit
8
 
 
9
  COPY requirements.txt .
10
  RUN pip install --upgrade pip && pip install -r requirements.txt
11
 
 
12
  COPY . .
13
 
 
14
  ENV CHAINLIT_STORAGE_DIR=/app/.chainlit
15
 
16
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
17
-
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies for PDF handling and Git
6
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
7
 
8
+ # Create a writable directory for Chainlit
9
  RUN mkdir -p /app/.chainlit && chmod -R 777 /app/.chainlit
10
 
11
+ # Copy requirements and install
12
  COPY requirements.txt .
13
  RUN pip install --upgrade pip && pip install -r requirements.txt
14
 
15
+ # Copy all app files
16
  COPY . .
17
 
18
+ # Set environment variable for Chainlit storage
19
  ENV CHAINLIT_STORAGE_DIR=/app/.chainlit
20
 
21
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]