-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 795 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 795 Bytes
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
FROM orsolin/docker-php-5.3-apache
ENV VT_VERSION=5.1.0 \
VT_DOWNLOAD=http://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%205.1.0/Core%20Product/vtigercrm-5.1.0.tar.gz \
COMPOSER_ALLOW_SUPERUSER=1 \
PATH=/root/.composer/vendor/bin:$PATH
WORKDIR /var/www/html
RUN curl -o vt.tar.gz -sL "$VT_DOWNLOAD" \
&& tar -xzf vt.tar.gz \
&& rm vt.tar.gz \
&& mv vtigercrm vtiger \
&& chmod -R 775 vtiger \
&& chown -R www-data:www-data vtiger
COPY php.ini /etc/php5/apache2/conf.d/php.ini
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
COPY vtiger-ssl.* /etc/apache2/ssl/
RUN mkdir -p /var/www/html/vtiger
RUN sed -e 's!DocumentRoot /var/www/html!DocumentRoot /var/www/html/vtiger!' -ri /etc/apache2/apache2.conf
RUN service apache2 start
WORKDIR /app