2017-10-04 23:47:36 +00:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
|
2017-10-04 23:28:54 +00:00
|
|
|
|
|
|
|
# Let the conatiner know that there is no tty
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV COMPOSER_NO_INTERACTION 1
|
|
|
|
|
|
|
|
# Add Node.js repo
|
2017-10-04 23:47:36 +00:00
|
|
|
RUN apt-get update -y \
|
|
|
|
&& apt-get install -y python-software-properties \
|
|
|
|
&& add-apt-repository -y ppa:ondrej/php \
|
2017-10-04 23:51:11 +00:00
|
|
|
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
2017-10-04 23:28:54 +00:00
|
|
|
&& apt-get install --no-install-recommends -y \
|
2017-10-04 23:51:11 +00:00
|
|
|
curl \
|
|
|
|
nodejs \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
openssh-client \
|
|
|
|
php7.1-cli \
|
|
|
|
nodejs \
|
2017-10-04 23:28:54 +00:00
|
|
|
# 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 && node -v && npm -v \
|
|
|
|
# Install composer
|
2017-10-04 23:36:37 +00:00
|
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
2017-10-04 23:28:54 +00:00
|
|
|
&& composer selfupdate
|
|
|
|
|