easy-osm2city-podman/managment/Dockerfile

21 lines
476 B
Text
Raw Normal View History

FROM docker.io/library/php:7.2-apache
RUN apt-get update -y && apt-get install -y git
RUN docker-php-ext-install -j$(nproc) mysqli
WORKDIR /
RUN git clone https://gitlab.com/merspieler/osm2city-scripts.git && cp /osm2city-scripts/web/index.php /var/www/html/ && rm -rf /osm2city-scripts
WORKDIR /var/www/html/
COPY config.php .
# Set default env vars
ENV SQL_HOST mysql
ENV SQL_PORT 3306
ENV SQL_USER flightgear
ENV SQL_PASSWORD FG-is-GREAT
ENV SQL_DATABASE worldbuild