POC2PROD / Dockerfile
maxcasado's picture
Update Dockerfile
fd12ebe verified
raw
history blame contribute delete
437 Bytes
# Dockerfile
FROM python:3.11-slim
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
# (optionnel) quelques deps système
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face lira app_port: 8501, donc on écoute sur 8501
ENV PORT=8501
EXPOSE 8501
CMD ["bash", "start.sh"]