Source files of publiccode.eu, the official website for the "Public Money, Public Code" campaign https://publiccode.eu

Dockerfile 698B

123456789101112131415161718192021222324252627
  1. FROM php:7.0-apache
  2. ENV HUGO_VERSION 0.26
  3. ENV HUGO_BINARY hugo_${HUGO_VERSION}_Linux-64bit.deb
  4. RUN apt-get update && apt-get upgrade -y && \
  5. apt-get install -y git curl unzip python3 python3-pip libyaml-dev
  6. RUN pip3 install awscli
  7. RUN curl -sS https://getcomposer.org/installer \
  8. | php -- --install-dir=/usr/local/bin --filename=composer
  9. RUN composer require phpmailer/phpmailer
  10. RUN a2enmod rewrite
  11. ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
  12. RUN dpkg -i /tmp/hugo.deb \
  13. && rm /tmp/hugo.deb
  14. COPY site/ /usr/share/blog
  15. COPY 000-default.conf /etc/apache2/sites-enabled/
  16. CMD /usr/share/blog/build/build.sh && apache2-foreground