File size: 733 Bytes
b0013f8
1637469
f94fc74
 
 
94524eb
a6454e2
27b3d5a
a6454e2
b0013f8
 
 
 
 
 
94524eb
f94fc74
 
 
94524eb
 
 
a6454e2
f94fc74
 
a6454e2
f94fc74
 
94524eb
f94fc74
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.10

# Set working directory
WORKDIR /app

# Set Chainlit config and files path to writable locations
ENV CHAINLIT_CONFIG_DIR=/tmp/.chainlit
ENV CHAINLIT_FILES_PATH=/tmp/.chainlit/files

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Create required directories manually to avoid permission issues
RUN mkdir -p /tmp/.chainlit/files

# Copy application code
COPY . .

# Expose Chainlit's default port
EXPOSE 8000

# Run the Chainlit app
CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "8000"]