forked from avored/laravel-ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (26 loc) · 799 Bytes
/
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
FROM indpurvesh/laravel-ecommerce
MAINTAINER purvesh <[email protected]>
RUN apt-get update && apt-get install -y \
apache2-bin \
libapache2-mod-php5 \
php5-curl \
php5-ldap \
php5-sqlite \
php5-mysql \
php5-mcrypt \
php5-gd \
patch \
curl \
nano \
vim \
git \
mysql-client
RUN rm /etc/apache2/sites-available/000-default.conf
ADD 000-default.conf /etc/apache2/sites-available/
RUN service apache2 start
RUN cd /tmp;curl -sS https://getcomposer.org/installer | php;mv /tmp/composer.phar /usr/local/bin/composer
Run rm -rf /var/www/laravel
RUN composer create-project avored/laravel-ecommerce /var/www/laravel
RUN /bin/chown www-data:www-data -R /var/www/laravel/storage
EXPOSE 80
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]