Update all to latest
Change-Id: I40c35f1e72dd3b068c5802171e2fa40c9d85fb10
diff --git a/Dockerfile b/Dockerfile
index 00bea0d..cde20de 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,12 @@
-# Use the official Python 3.11 image
-FROM python:3.11-slim-bookworm
+# Use the official Python 3.12 image
+FROM python:3.12-slim-bookworm
# Set environment variables
ENV PIP_CACHE_DIR="/app/.cache/pip" \
PYTHONPATH="PYTHONPATH:."
ENV VIRTUAL_ENV=/app/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
+ENV MAKEFLAGS="-j$(nproc)"
# Set the working directory
COPY lib /app/lib
@@ -17,8 +18,8 @@
# Install Python dependencies and create a virtual environment
RUN mkdir -p "/app/logs"
RUN python -m venv venv
-RUN cp $(find / -name longintrepr.h) /usr/local/include/python3.11/
-RUN venv/bin/pip install --use-pep517 -r requirements.txt
+RUN venv/bin/pip install --upgrade pip
+RUN venv/bin/pip install -r requirements.txt
RUN . venv/bin/activate && python -m spacy download de_core_news_lg
# Define the entry point