Skip to content

Instantly share code, notes, and snippets.

@guemidiborhane
Last active August 29, 2015 14:20
Show Gist options
  • Save guemidiborhane/3d97ce82082418f077a0 to your computer and use it in GitHub Desktop.
Save guemidiborhane/3d97ce82082418f077a0 to your computer and use it in GitHub Desktop.
# Base image
FROM ubuntu:14.04
# Put my hand up as maintainer
MAINTAINER Borhane Eddine Guemidi <guemidiborhane@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && \
apt-get install -y software-properties-common python-software-properties && \
echo "deb http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu trusty main" > /etc/apt/sources.list.d/ondrej-php5-5_6-trusty.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C && \
apt-add-repository -y ppa:chris-lea/node.js && \
apt-add-repository -y ppa:git-core/ppa
# Install OS tools we'll need
RUN \
apt-get update && \
apt-get -y install wget && \
apt-get -y install vim && \
apt-get -y install git && \
apt-get -y install nodejs && \
apt-get -y install zsh && \
apt-get -y install \
php5-cli \
php5-json \
php5-mcrypt \
php5-gd \
php5-intl \
php5-memcached memcached \
php5-mysql \
php5-sqlite \
php5-xdebug \
curl php5-curl
RUN \
git clone git://github.com/amix/vimrc.git ~/.vim_runtime && \
sh ~/.vim_runtime/install_awesome_vimrc.sh
RUN \
curl -sS https://getcomposer.org/installer | php && \
mv -v composer.phar /usr/local/bin/composer && \
composer global require "laravel/installer=~1.1" && \
composer global require "laravel/lumen-installer=~1.0"
RUN npm install -g bower gulp maildev
# Install OH-MY-ZSH to see pretty terminal and ditch the bash
RUN curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
RUN mkdir ~/Lab
# RUN sed -i '/^plugins*/ s/^/#/' ~/.zshrc && echo 'plugins=(git composer laravel5)' >> ~/.zshrc
RUN sed -i '/^plugins*/ s/^/plugins=(git composer laravel5)\n#/' ~/.zshrc
RUN /bin/zsh -c "source ~/.zshrc"
EXPOSE 8000
# Set environment variables
ENV HOME /root
# Define working directory
WORKDIR /root
# Define default command
CMD ["/bin/zsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment