kopia lustrzana https://github.com/carlos-algms/composer-and-node-ci
Upgrading to NodeJS 12.x and PHP 7:latest
rodzic
ccbfbbb12e
commit
759caaade1
59
Dockerfile
59
Dockerfile
|
@ -1,30 +1,35 @@
|
||||||
FROM php:7.1
|
FROM php:7
|
||||||
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
|
MAINTAINER Carlos A. Gomes <carlos.algms@gmail.com>
|
||||||
|
|
||||||
# Add Node.js repo
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y apt-transport-https \
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
apt-transport-https \
|
||||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||||
&& curl -sL https://deb.nodesource.com/setup_9.x | bash - \
|
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
|
||||||
nodejs \
|
&& apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
unzip \
|
nodejs \
|
||||||
build-essential \
|
unzip \
|
||||||
openssh-client \
|
build-essential \
|
||||||
rsync \
|
openssh-client \
|
||||||
git \
|
rsync \
|
||||||
yarn \
|
git \
|
||||||
|
yarn \
|
||||||
|
|
||||||
# Slim down image
|
|
||||||
&& apt-get clean \
|
# Slim down image
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_* \
|
&& apt-get clean \
|
||||||
# Show versions
|
&& rm -rf \
|
||||||
&& php -v \
|
/var/lib/apt/lists/* \
|
||||||
&& echo "node: `node -v` " \
|
/tmp/* \
|
||||||
&& echo "npm: `npm -v`" \
|
/var/tmp/* \
|
||||||
# Install composer
|
/usr/share/man/?? \
|
||||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
/usr/share/man/??_* \
|
||||||
|
|
||||||
|
# Install composer
|
||||||
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||||
|
# Show versions
|
||||||
|
&& php -v \
|
||||||
|
&& echo "node: `node -v` " \
|
||||||
|
&& echo "npm: `npm -v`"
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# composer-and-node-ci
|
# composer-and-node-ci
|
||||||
|
|
||||||
A docker image to be used on continous integration projects.
|
A docker image to be used on continuous integration projects.
|
||||||
|
|
||||||
It was made to use with Laravel and/or Frontend projects, since it has all what is needed to build both types of projects.
|
It was made to use with Laravel and/or Frontend projects since it has all that is needed to build both types of projects.
|
||||||
|
|
||||||
## This image includes:
|
## This image includes:
|
||||||
|
|
||||||
* PHP 7.1
|
* PHP 7:latest
|
||||||
* composer - latest
|
* composer - latest
|
||||||
* NodeJS 8.x and NPM
|
* NodeJS 12.x and NPM
|
||||||
* yarn - latest
|
* yarn - latest
|
||||||
* openssh client
|
* openssh client
|
||||||
* git
|
* git
|
||||||
|
|
Ładowanie…
Reference in New Issue