FROM ubuntu:24.04 COPY ./helpers/install_requirements.sh / RUN /install_requirements.sh # Install MariaDB so MySQL should be removed RUN apt-get update -y; apt-get remove -y mysql-client mysql-server; apt-get install --no-install-recommends -y mariadb-server mariadb-client; rm -rf /var/lib/apt/lists/*; COPY ./helpers/init_postgres.sh / ENV PGDATA="/var/lib/postgresql/data" ENV POSTGRES_PATH="/usr/lib/postgresql/16" RUN su postgres -c /init_postgres.sh ENV SPATIALITE_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/mod_spatialite.so" COPY ./helpers/init_mariadb.sh / RUN /init_mariadb.sh COPY ./helpers/entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"]