Created
October 16, 2015 11:13
-
-
Save ahmednuaman/5be4a2b6ce9f9ec0de36 to your computer and use it in GitHub Desktop.
Magento Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM octohost/base:trusty | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys C300EE8C; \ | |
echo 'deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main' > /etc/apt/sources.list.d/nginx-stable-trusty.list; \ | |
apt-get update; \ | |
apt-get install -y nginx git | |
ADD /tmp-conf/default /etc/nginx/sites-available/default | |
ADD /tmp-conf/nginx.conf /etc/nginx/nginx.conf | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys E5267A6C; \ | |
echo 'deb http://ppa.launchpad.net/ondrej/php5/ubuntu trusty main' > /etc/apt/sources.list.d/ondrej-php5-trusty.list; \ | |
apt-get update; \ | |
apt-get -y install php5-fpm php5-mysql php-apc php5-imagick php5-imap php5-mcrypt php5-curl php5-cli php5-gd php5-common php-pear curl php5-json php5-xsl php5-intl; \ | |
apt-get clean; \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
ADD archive/magento.tar.bz2 /srv/ | |
RUN mv /srv/magento /srv/www | |
WORKDIR /srv/www | |
ADD /tmp-conf/local.xml app/etc/local.xml | |
RUN chown -R www-data:www-data .; \ | |
rm LICENSE* RELEASE_NOTES.txt index.php.sample php.ini.sample .htaccess.sample | |
EXPOSE 80 | |
CMD service php5-fpm start; \ | |
nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment