composer-and-node-ci/Dockerfile

38 wiersze
1.2 KiB
Docker
Czysty Zwykły widok Historia

FROM php:7
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
2020-01-25 00:08:46 +00:00
RUN apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
2020-01-25 00:08:46 +00:00
gnupg2 \
apt-transport-https \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
&& apt-get install --no-install-recommends --no-install-suggests -y \
nodejs \
unzip \
build-essential \
openssh-client \
rsync \
git \
yarn \
2020-09-15 13:32:46 +00:00
default-mysql-client \
# Slim down image
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man/?? \
/usr/share/man/??_* \
# Install composer
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
# Install Deployer - https://deployer.org/docs/getting-started.html
&& curl -LO https://deployer.org/deployer.phar \
&& mv deployer.phar /usr/local/bin/dep \
&& chmod +x /usr/local/bin/dep \
# Show versions
&& php -v \
&& echo "node: `node -v` " \
&& echo "npm: `npm -v`"