FROM composer:2.2.9 as build ADD . /build WORKDIR /build RUN /build/install.sh FROM registry.git.autistici.org/ai3/docker/apache2-php-base:master COPY --from=build /build/app/ /opt/noblogs/www COPY docker/htaccess /opt/noblogs/www/.htaccess COPY docker/wp-config.php /opt/noblogs/www/wp-config.php COPY docker/wp-cache-config.php /opt/noblogs/www/wp-content/wp-cache-config.php COPY docker/conf /tmp/conf COPY docker/build.sh /tmp/build.sh RUN /tmp/build.sh && rm /tmp/build.sh # For testing purposes (8080 is the default port of apache2-php-base). EXPOSE 8080/tcp