File size: 445 Bytes
a7357b1 792fd49 5e3713f 792fd49 a7357b1 9f1f4cf 792fd49 a7357b1 792fd49 9f1f4cf 792fd49 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.9-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PORT=7860
WORKDIR $HOME/app
# 1) Copia requirements y se instalan (para aprovechar caché):
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# 2) Copia el resto de archivos (app.py, XLSX, WAV, etc.)
COPY . .
EXPOSE 7860
CMD ["chainlit", "run", "app.py", "--host=0.0.0.0", "--port=7860"]
|