Skip to content

Instantly share code, notes, and snippets.

@prestarocket
Forked from creack/Dockerfile
Created June 30, 2013 13:18
Show Gist options
  • Save prestarocket/5895118 to your computer and use it in GitHub Desktop.
Save prestarocket/5895118 to your computer and use it in GitHub Desktop.
# PrestaShop
#
# VERSION 0.1
# DOCKER-VERSION 0.2
from ubuntu:12.04
# make sure the package repository is up to date
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
# Install lamp and unzip
run apt-get install -y apache2 php5 libapache2-mod-php5 unzip php5-gd php5-mysql
# Install mysql-server in non-interactive mode
run bash -c "export DEBIAN_FRONTEND=noninteractive; apt-get -q -y install mysql-server-5.5"
# Make mysql listen on the outside
run sed -i 's/127.0.0.1/0.0.0.0/' /etc/mysql/my.cnf
# Retrieve PrestaShop's sources, unzip them and set the permissions
copy http://www.prestashop.com/download/old/prestashop_1.5.4.1.zip /var/www/prestashop.zip
run unzip /var/www/prestashop.zip -d /var/www/
run chown -R www-data:www-data /var/www/prestashop
# Retrieve the template for the settings
copy https://raw.github.com/jbarbier/PrestaShop/master/.docker/settings.inc.php /var/www/prestashop/config/settings.inc.php.template
@nnn-gif
Copy link

nnn-gif commented Dec 2, 2013

COPY http://www.prestashop.com/download/old/prestashop_1.5.4.1.zip /var/www/prestashop.zip
COPY has been deprecated. Please use ADD instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment