composer-and-node-ci/Dockerfile

24 wiersze
621 B
Docker
Czysty Zwykły widok Historia

FROM php:7.1
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
# Add Node.js repo
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install --no-install-recommends -y \
2017-10-04 23:51:11 +00:00
nodejs \
unzip \
2017-10-04 23:51:11 +00:00
build-essential \
openssh-client \
2017-10-05 00:44:03 +00:00
rsync \
git \
# Slim down image
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_* \
# Show versions
&& php -v \
2017-10-05 00:16:25 +00:00
&& echo "node: `node -v` " \
&& echo "npm: `npm -v`" \
# Install composer
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer