Update dockerfile to adapt to new debian version

This commit is contained in:
Phillip Kühne 2023-06-30 15:59:04 +02:00
parent 4c806c3550
commit 5efa21924b
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA

View File

@ -1,12 +1,16 @@
FROM tiangolo/meinheld-gunicorn-flask:python3.9 FROM tiangolo/meinheld-gunicorn-flask:python3.9
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db # Currently unusable, mariadb is not available through installer for debian 12
RUN curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash # RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
# RUN curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash
RUN apt-get update RUN apt-get update
RUN apt-get upgrade -y RUN apt-get upgrade -y
RUN apt-get dist-upgrade RUN apt-get dist-upgrade
# In the meantime, acquire the mariadb packages through apt
RUN apt-get install -y libmariadb3 libmariadb-dev
COPY ./backend/requirements.txt /app/requirements.txt COPY ./backend/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt