From 7ecd8b5cd6b1c9de12d816838acf1fa8d98fdf49 Mon Sep 17 00:00:00 2001 From: mahak933 Date: Sat, 21 Feb 2026 13:01:05 +0000 Subject: [PATCH 1/2] Update requireent.txt and dockerfile for latest python --- Dockerfile | 26 +++++++++++--------------- requirements.txt | 9 ++++++++- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6723a45b..11eaacd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,17 @@ -FROM python:3.8.0-alpine3.10 -# Python docker images: https://github.com/docker-library/docs/tree/master/python/ -USER root +FROM python:3.8.0-alpine -# Copy the src WORKDIR /app -COPY src/ /app/src/ -COPY ./requirements.txt /app -RUN ls -la /app -# Install python dependencies -RUN python3 --version -RUN pip3 install --upgrade pip -RUN pip3 install --no-cache-dir -r /app/requirements.txt -RUN pip3 list --format=columns -USER 1001 -# EXPOSE 5001 -ENTRYPOINT ["python3", "/app/src/app.py"] +COPY requirements.txt /app/ +RUN pip install --no-cache-dir -r requirements.txt || tru + +COPY src/ /app/ + + + +EXPOSE 5001 + +CMD ["python", "app.py"] diff --git a/requirements.txt b/requirements.txt index dcf72e94..ca42532a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,12 @@ # Install Instructions: # pip3 install -r requirements.txt -flask==1.1.1 + +# requirements.txt +Flask==2.3.3 +# Optional: pin core deps to compatible versions (helps reproducibility) +Jinja2==3.1.4 +Werkzeug==2.3.7 +itsdangerous==2.1.2 +click==8.1.7 From 37454acf2d75482574a8ad3915e8a41d43153d7c Mon Sep 17 00:00:00 2001 From: Mahak Agrawal <84792531+mahak933@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:08:42 +0530 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 11eaacd7..62922dd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app COPY requirements.txt /app/ -RUN pip install --no-cache-dir -r requirements.txt || tru +RUN pip install --no-cache-dir -r requirements.txt || true COPY src/ /app/