framaforms-stack/Dockerfile

23 lines
646 B
Text
Raw Permalink Normal View History

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