MargeCode / Dockerfile
ancerlop's picture
Update Dockerfile
4f63785 verified
raw
history blame contribute delete
591 Bytes
# Imagen base mínima de Hugging Face
FROM python:3.10-slim
# Evitar prompts interactivos
ENV DEBIAN_FRONTEND=noninteractive
# 1. Instalar compilador C y dependencias
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
gcc \
ca-certificates \
&& \
rm -rf /var/lib/apt/lists/*
# 2. Copiar código
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY README.md .
# 3. Puerto por defecto de Gradio
EXPOSE 7860
# 4. Comando de arranque
CMD ["python", "app.py"]