# Definir la imagen FROM debian:12.10 # Instalar Python y venv para entornos virtuales RUN apt -y update RUN apt install -y python3 python3-pip python3-django RUN python3 -m django --version # Pasos del tutorial de DJango #RUN mkdir djangotutorial #RUN django-admin startproject miSitio djangotutorial #RUN cd djangotutorial #RUN ls -l # Verificar si python esta instalado # RUN which python || which python3 || which py # Version Python # RUN python3 --version # Activar el entorno virutal # RUN python3 -m venv django # RUN python3 django/bin/activate # Instalar DJango # RUN python3 -m pip install Django==5.1.7