Last active
August 29, 2015 14:17
-
-
Save MrTrick/f1347d10b897707dfa69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 php:5.4-apache | |
# Install Python (needed for node.js) | |
RUN \ | |
apt-get update && \ | |
apt-get install -y python python-dev python-pip python-virtualenv && \ | |
rm -rf /var/lib/apt/lists/* | |
# Install phpunit | |
RUN \ | |
apt-get install -y wget && \ | |
wget https://phar.phpunit.de/phpunit.phar && \ | |
chmod +x phpunit.phar && \ | |
mv phpunit.phar /usr/local/bin/phpunit && \ | |
phpunit --version | |
# Install Node.js | |
RUN \ | |
cd /tmp && \ | |
wget http://nodejs.org/dist/node-latest.tar.gz && \ | |
tar xvzf node-latest.tar.gz && \ | |
rm -f node-latest.tar.gz && \ | |
cd node-v* && \ | |
./configure && \ | |
CXX="g++ -Wno-unused-local-typedefs" make && \ | |
CXX="g++ -Wno-unused-local-typedefs" make install && \ | |
cd /tmp && \ | |
rm -rf /tmp/node-v* && \ | |
npm install -g npm && \ | |
echo -e '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc | |
# Define working directory. | |
WORKDIR /data | |
# Define default command. | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment