IngWeb / Dockerfile
chartManD's picture
Update Dockerfile
0a978d9 verified
raw
history blame
647 Bytes
# 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 [3.2.19]
# Pasos del tutorial de DJango
RUN mkdir itsz
WORKDIR itsz
RUN django-admin startproject miSitio
RUN ls
WORKDIR miSitio
CMD python3 manage.py runserver 0=7860
# 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