-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (19 loc) · 901 Bytes
/
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
FROM hussainweb/php-code-quality:latest
WORKDIR $TARGET_DIR
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs && \
apt-get install -y python && \
apt-get install -y python-pip && \
pip install codespell && \
npm i -g eslint && \
npm i -g stylelint && \
npm i -g stylelint-checkstyle-formatter && \
npm i -g stylelint-config-standard && \
npm i -g stylelint-no-browser-hacks && \
npm i -g stylelint-scss
RUN composer require --prefer-dist "drupal/coder:dev-8.x-2.x" && \
git clone http://git.drupal.org/sandbox/coltrane/1921926.git drupalsecure && \
git clone https://github.com/klausi/pareviewsh.git
RUN vendor/bin/phpcs --config-set installed_paths $TARGET_DIR/vendor/drupal/coder/coder_sniffer/,$TARGET_DIR/drupalsecure
RUN ln -s $TARGET_DIR/vendor/bin/phpcs /usr/local/bin
COPY .stylelintrc.json $TARGET_DIR/