From dd61e14417f3c43c52ed268d696962012ab9ed37 Mon Sep 17 00:00:00 2001 From: Babapeer <69247426+Babapeer@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:00:33 +0530 Subject: [PATCH] commit commit the changes --- examples/python-web-app/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/python-web-app/Dockerfile b/examples/python-web-app/Dockerfile index 5e158392..4e218666 100644 --- a/examples/python-web-app/Dockerfile +++ b/examples/python-web-app/Dockerfile @@ -6,11 +6,13 @@ COPY requirements.txt /app COPY devops /app RUN apt-get update && \ - apt-get install -y python3 python3-pip && \ + apt-get install -y python3 python3-venv && \ + python3 -m venv /venv && \ + /venv/bin/ pip install -r requirements.txt && \ cd devops -ENTRYPOINT ["python3"] +ENTRYPOINT ["venv/bin/python3"] CMD ["manage.py", "runserver", "0.0.0.0:8000"]