-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
30 lines (26 loc) · 1.37 KB
/
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
28
29
30
FROM ubuntu:vivid
MAINTAINER Iain Mckay "[email protected]"
RUN apt-get update && \
apt-get install -y software-properties-common wget git curl && \
curl -sL https://deb.nodesource.com/setup_5.x | bash - && \
apt-get update && \
apt-get install -y graphviz phpunit nodejs \
php5-cli php5-mcrypt php5-mysql php5-xdebug php5-curl php5-memcached php5-memcache php-pear php5-gd php5-apcu php5-imagick php5-imap php5-intl php5-sasl php5-xdebug \
openjdk-8-jre libxext-dev libxrender-dev libxtst-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
RUN useradd -m -s /bin/bash developer \
&& mkdir /home/developer/.PhpStorm2017.1 \
&& touch /home/developer/.PhpStorm2017.1/.keep \
&& chown -R developer.developer /home/developer \
&& mkdir /opt/phpstorm \
&& wget -O - https://download.jetbrains.com/webide/PhpStorm-2017.1.tar.gz | tar xzf - --strip-components=1 -C "/opt/phpstorm"
RUN php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin
RUN php5enmod mcrypt mysql xdebug curl memcached memcache gd apcu imagick imap intl sasl
RUN wget -c http://static.phpmd.org/php/latest/phpmd.phar -O /usr/bin/phpmd.phar && chmod +x /usr/bin/phpmd.phar
RUN pear install PHP_CodeSniffer
RUN npm install -g bower
USER developer
VOLUME /home/developer/.PhpStorm2017.1
CMD /opt/phpstorm/bin/phpstorm.sh