From 8aa700b5c3531a40c3629f93f61ee7febf84cb3d Mon Sep 17 00:00:00 2001 From: Eike Broda Date: Tue, 20 Aug 2024 15:28:25 +0200 Subject: [PATCH] Update Dockerfile to use mod_wsgi fitting to Python version (fixes #1790) --- docker/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index afadf4ebc..b9bd982fc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,15 +1,18 @@ FROM python:3.10.14 RUN apt-get update \ - && apt-get install -y apache2 apache2-dev libapache2-mod-wsgi-py3\ + && apt-get install -y apache2 apache2-dev \ && rm -rf /var/lib/apt/lists/* WORKDIR /app - COPY requirements.txt /app/requirements.txt + RUN pip install -r requirements.txt +RUN pip install mod_wsgi +RUN mod_wsgi-express module-config >> /etc/apache2/apache2.conf + COPY ./docker/apache2.conf /etc/apache2/conf-enabled/oeplatform.conf COPY . /app COPY ./docker/docker-entrypoint.sh /app/docker-entrypoint.sh