2020-01-24 23:47:28 +00:00
|
|
|
FROM php:7
|
2017-10-04 23:47:36 +00:00
|
|
|
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
|
2017-10-04 23:28:54 +00:00
|
|
|
|
2020-01-25 00:08:46 +00:00
|
|
|
RUN apt-get update \
|
2020-01-24 23:47:28 +00:00
|
|
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
2020-01-25 00:08:46 +00:00
|
|
|
gnupg2 \
|
2020-01-24 23:47:28 +00:00
|
|
|
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 \
|
2021-02-03 10:06:33 +00:00
|
|
|
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
|
2020-01-24 23:47:28 +00:00
|
|
|
&& 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 \
|
2020-01-24 23:47:28 +00:00
|
|
|
# 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 \
|
2021-02-03 10:06:33 +00:00
|
|
|
# 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 \
|
2020-01-24 23:47:28 +00:00
|
|
|
# Show versions
|
|
|
|
&& php -v \
|
|
|
|
&& echo "node: `node -v` " \
|
|
|
|
&& echo "npm: `npm -v`"
|