Source files of publiccode.eu, the official website for the "Public Money, Public Code" campaign https://publiccode.eu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 608B

123456789101112131415161718192021222324252627
  1. FROM php:7-apache
  2. ENV HUGO_VERSION 0.50
  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
  6. RUN a2enmod rewrite
  7. ADD https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BINARY} /tmp/hugo.deb
  8. RUN dpkg -i /tmp/hugo.deb && \
  9. rm /tmp/hugo.deb
  10. RUN mkdir -p /usr/share/blog
  11. COPY . /tmp/pmpc-build/
  12. WORKDIR /tmp/pmpc-build/site/
  13. RUN build/build.sh && \
  14. cp -r public/ /usr/share/blog/public/ && \
  15. cd / && rm -rf /tmp/pmpc-build
  16. COPY 000-default.conf /etc/apache2/sites-enabled/
  17. CMD apache2-foreground