FROM ubuntu:24.04 RUN apt-get update RUN apt-get install -y python3-pip RUN apt-get install -y python3-venv RUN python3 -m venv /code/venv RUN /code/venv/bin/pip install --upgrade pip RUN /code/venv/bin/pip install -r /code/requirements.txt WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install -r requirements.txt COPY . . ENV PATH="/code/venv/bin:$PATH" EXPOSE 7860 CMD ["python","./manage.py","runserver","0.0.0.0:7860"]