diff --git a/application/Dockerfile b/application/Dockerfile index d076bc41..d422db45 100644 --- a/application/Dockerfile +++ b/application/Dockerfile @@ -8,14 +8,14 @@ RUN apt-get update && \ add-apt-repository ppa:deadsnakes/ppa && \ # Install necessary packages and Python apt-get update && \ - apt-get install -y --no-install-recommends gcc wget unzip libc6-dev python3.11 python3.11-distutils python3.11-venv && \ + apt-get install -y --no-install-recommends gcc wget unzip libc6-dev python3.12 python3.12-venv && \ rm -rf /var/lib/apt/lists/* # Verify Python installation and setup symlink -RUN if [ -f /usr/bin/python3.11 ]; then \ - ln -s /usr/bin/python3.11 /usr/bin/python; \ +RUN if [ -f /usr/bin/python3.12 ]; then \ + ln -s /usr/bin/python3.12 /usr/bin/python; \ else \ - echo "Python 3.11 not found"; exit 1; \ + echo "Python 3.12 not found"; exit 1; \ fi # Download and unzip the model @@ -33,7 +33,7 @@ RUN apt-get remove --purge -y wget unzip && apt-get autoremove -y && rm -rf /var COPY requirements.txt . # Setup Python virtual environment -RUN python3.11 -m venv /venv +RUN python3.12 -m venv /venv # Activate virtual environment and install Python packages ENV PATH="/venv/bin:$PATH" @@ -50,8 +50,8 @@ RUN apt-get update && \ apt-get install -y software-properties-common && \ add-apt-repository ppa:deadsnakes/ppa && \ # Install Python - apt-get update && apt-get install -y --no-install-recommends python3.11 && \ - ln -s /usr/bin/python3.11 /usr/bin/python && \ + apt-get update && apt-get install -y --no-install-recommends python3.12 && \ + ln -s /usr/bin/python3.12 /usr/bin/python && \ rm -rf /var/lib/apt/lists/* # Set working directory diff --git a/application/requirements.txt b/application/requirements.txt index 57da7d9a..787be450 100644 --- a/application/requirements.txt +++ b/application/requirements.txt @@ -12,7 +12,7 @@ escodegen==1.0.11 esprima==4.0.1 esutils==1.0.1 Flask==3.0.3 -faiss-cpu==1.8.0.post1 +faiss-cpu==1.9.0.post1 flask-restx==1.3.0 gTTS==2.3.2 gunicorn==23.0.0