DataKloug / Dockerfile
jeysshon's picture
Update Dockerfile
a7357b1 verified
raw
history blame contribute delete
445 Bytes
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"]