Dockerfile 957 B

123456789101112131415161718192021222324252627
  1. FROM cloudron/base:0.8.1
  2. MAINTAINER Johannes Zellner <johannes@cloudron.io>
  3. RUN mkdir -p /app/data /app/code /run/app/sessions
  4. WORKDIR /app/data
  5. # configure apache
  6. RUN rm /etc/apache2/sites-enabled/*
  7. RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
  8. RUN sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.conf
  9. RUN a2disconf other-vhosts-access-log
  10. ADD apache2-app.conf /etc/apache2/sites-available/app.conf
  11. RUN ln -sf /etc/apache2/sites-available/app.conf /etc/apache2/sites-enabled/app.conf
  12. RUN echo "Listen 8000" > /etc/apache2/ports.conf
  13. # configure mod_php
  14. RUN a2enmod php5
  15. RUN a2enmod rewrite
  16. RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \
  17. -e 's,;session.save_path.*,session.save_path = "/run/app/sessions",' \
  18. -i /etc/php5/apache2/php.ini
  19. ADD index.html /app/code/index.html
  20. ADD start.sh /app/code/start.sh
  21. CMD [ "/app/code/start.sh" ]