File size: 466 Bytes
3369a79
 
 
90ab048
 
3369a79
 
90ab048
 
 
 
 
 
 
 
3369a79
 
90ab048
b5572d7
7fd8dbd
 
3369a79
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

WORKDIR /app

# Copy project files
COPY . .

RUN pip install --no-cache-dir -r requirements.txt

# Create the required directory and adjust its ownership
RUN mkdir -p /app/.files && chown -R 1000:1000 /app/.files

# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos '' appuser && chown -R appuser:appuser /app
USER appuser

EXPOSE 7860




CMD ["chainlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]