FROM tensorflow/tensorflow:2.12.0-gpu WORKDIR /app # Configurar Jupyter para escribir en /tmp directamente ENV JUPYTER_RUNTIME_DIR=/tmp ENV JUPYTER_DATA_DIR=/tmp ENV JUPYTER_CONFIG_DIR=/tmp # Instalar dependencias COPY requirements.txt . RUN pip install --upgrade pip && pip install -r requirements.txt # Copiar código del notebook COPY . . # Ejecutar Jupyter Notebook CMD ["jupyter", "notebook", \ "--ip=0.0.0.0", \ "--allow-root", \ "--NotebookApp.token=''", \ "--NotebookApp.password=''", \ "--NotebookApp.notebook_dir=/app", \ "--no-browser"]