Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
[CodeClimate] Dockerfile - install git/unzip for composer and after p…
Browse files Browse the repository at this point in the history
…urge it
  • Loading branch information
ovr committed Jan 5, 2017
1 parent adf7a10 commit 361c7d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/codeclimate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ COPY . /usr/src/app/
#RUN git clone https://github.com/ovr/phpsa.git .
#COPY phpsa /usr/src/app/plugins/codeclimate/phpsa

RUN curl -sS https://getcomposer.org/installer | php && \
/usr/src/app/composer.phar install --no-dev --optimize-autoloader
RUN apt-get update && apt-get install -y git unzip && \
curl -sS https://getcomposer.org/installer | php && \
/usr/src/app/composer.phar update --no-dev --optimize-autoloader && \
apt-get purge -y git unzip && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN useradd -u 9000 -r -s /bin/false app

Expand Down

0 comments on commit 361c7d1

Please sign in to comment.