FROM python:3.10-slim # Instala herramientas necesarias RUN apt-get update && \ apt-get install -y curl unzip && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip download --no-deps --no-cache-dir --retries 999 --timeout 60 --index-url https://download.pytorch.org/whl/rocm7.2 torch==2.13.0+rocm7.2 -d . && mv *.whl torch.whl # Abre puerto 7860 EXPOSE 7860 # Mantiene el contenedor encendido después de iniciar el servidor CMD python3 -m http.server 7860 & tail -f /dev/null