-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathDockerfile
27 lines (22 loc) · 843 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
FROM tutum/lamp:latest
RUN a2enmod rewrite
#PHP dependencies
RUN apt-get update && apt-get install -y build-essential curl php5-curl
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
#NodeJS dependencies
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get update && apt-get install -y nodejs
RUN npm config set prefix /usr/local
RUN npm install -g bower
#App setup
RUN rm -fr /app && git clone https://github.com/ranacseruet/codeigniterplus.git /app
ADD docker-files/makefile /app/makefile
RUN cd /app && make
ADD docker-files/database.php /app/application/config/database.php
ADD docker-files/run.sh /run.sh
ADD docker-files/.htaccess /app/.htaccess
ADD docker-files/create_mysql_admin_user.sh /create_mysql_admin_user.sh
RUN chmod 755 /*.sh
EXPOSE 80 3306
CMD ["/run.sh"]