| 1 |
FROM ubuntu:24.04 |
| 2 |
|
| 3 |
COPY ./helpers/install_requirements.sh / |
| 4 |
RUN /install_requirements.sh |
| 5 |
|
| 6 |
# Install MariaDB so MySQL should be removed |
| 7 |
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/*; |
| 8 |
|
| 9 |
COPY ./helpers/init_postgres.sh / |
| 10 |
ENV PGDATA="/var/lib/postgresql/data" |
| 11 |
ENV POSTGRES_PATH="/usr/lib/postgresql/16" |
| 12 |
RUN su postgres -c /init_postgres.sh |
| 13 |
|
| 14 |
ENV SPATIALITE_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/mod_spatialite.so" |
| 15 |
|
| 16 |
COPY ./helpers/init_mariadb.sh / |
| 17 |
RUN /init_mariadb.sh |
| 18 |
|
| 19 |
COPY ./helpers/entrypoint.sh / |
| 20 |
ENTRYPOINT ["/entrypoint.sh"] |