navjotk commited on
Commit
94524eb
·
verified ·
1 Parent(s): 6c6b155

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM python:3.10
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Set Chainlit config and file path to writable directories
7
  ENV CHAINLIT_CONFIG_DIR=/tmp/.chainlit
8
  ENV CHAINLIT_FILES_PATH=/tmp/.chainlit/files
9
 
@@ -13,17 +13,18 @@ RUN apt-get update && apt-get install -y \
13
  build-essential \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Copy and install dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
 
 
 
20
  # Copy application code
21
  COPY . .
22
 
23
  # Expose Chainlit's default port
24
  EXPOSE 8000
25
 
26
- RUN mkdir -p /tmp/.chainlit/files
27
-
28
- # Run the app using Chainlit
29
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Set Chainlit config and files path to writable locations
7
  ENV CHAINLIT_CONFIG_DIR=/tmp/.chainlit
8
  ENV CHAINLIT_FILES_PATH=/tmp/.chainlit/files
9
 
 
13
  build-essential \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Copy and install Python dependencies
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Create required directories manually to avoid permission issues
21
+ RUN mkdir -p /tmp/.chainlit/files
22
+
23
  # Copy application code
24
  COPY . .
25
 
26
  # Expose Chainlit's default port
27
  EXPOSE 8000
28
 
29
+ # Run the Chainlit app
 
 
30
  CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]