forked from 13Genius/docker-humhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·46 lines (34 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Humhub
# Tested on Debian Wheezy
#
# VERSION 0.0.1
#
FROM adminrezo/docker-lamp
MAINTAINER Marcos Sanz "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
ENV GIT_MASTER_URL https://github.com/humhub/humhub/archive/master.zip
ENV DB_DATABASE humhub
ENV DB_USER humhub
ENV DB_PASSWORD HuMhUb
# Updates & packages install
RUN (apt-get update && apt-get upgrade -y -q && apt-get dist-upgrade -y -q && apt-get -y -q autoclean && apt-get -y -q autoremove)
RUN mysqld_safe start
RUN apt-get install -y -q php5-gd php5-curl php5-sqlite php5-ldap php-apc wget unzip cron
RUN wget $GIT_MASTER_URL
RUN unzip master.zip
RUN mv humhub-master /var/www/humhub
RUN chown www-data:www-data -R /var/www/
# Config
ADD default-ssl /etc/apache2/sites-available/default-ssl
ADD pre-conf.sh /pre-conf.sh
RUN chmod 750 /pre-conf.sh
RUN (/bin/bash -c /pre-conf.sh)
RUN service apache2 stop
RUN a2enmod ssl
RUN a2enmod rewrite
RUN a2dissite default
RUN a2ensite default-ssl
# Start services
ADD supervisor-humhub.conf /etc/supervisor/conf.d/supervisor-humhub.conf
EXPOSE 80 443
CMD ["supervisord", "-n"]