framaforms-stack/Dockerfile
2021-03-28 14:38:22 +02:00

23 lines
No EOL
646 B
Docker

FROM php:7.3-fpm
RUN apt-get update && apt-get install -y \
libxml2-dev \
libpq-dev \
libpng-dev \
libzip-dev
RUN docker-php-ext-install -j $(nproc) pgsql dom pdo_pgsql gd zip
ADD https://ftp.drupal.org/files/projects/drupal-7.78.tar.gz /tmp
ADD https://framagit.org/framasoft/framaforms/-/archive/1.0.3/framaforms-1.0.3.tar.gz /tmp
RUN tar -xzf /tmp/drupal-7.78.tar.gz
RUN tar -xzf /tmp/framaforms-1.0.3.tar.gz
RUN cp -r drupal-7.78/* /var/www/html/
RUN cp -r framaforms-1.0.3/profiles/framaforms_org/ profiles/
COPY settings.php sites/default/settings.php
RUN chmod 644 sites/default/settings.php
RUN chown -R www-data:www-data *