Upgrading to NodeJS 12.x and PHP 7:latest

pull/1/head
Carlos Gomes 2020-01-25 00:47:28 +01:00
rodzic ccbfbbb12e
commit 759caaade1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9D55F38FCFBCA928
2 zmienionych plików z 36 dodań i 31 usunięć

Wyświetl plik

@ -1,14 +1,14 @@
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 \
apt-transport-https \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ && 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 \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_9.x | bash - \ && curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install --no-install-recommends -y \ && apt-get install --no-install-recommends --no-install-suggests -y \
nodejs \ nodejs \
unzip \ unzip \
build-essential \ build-essential \
@ -20,11 +20,16 @@ RUN \
# Slim down image # Slim down image
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man/?? /usr/share/man/??_* \ && 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 \
# Show versions # Show versions
&& php -v \ && php -v \
&& echo "node: `node -v` " \ && echo "node: `node -v` " \
&& echo "npm: `npm -v`" \ && echo "npm: `npm -v`"
# Install composer
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

Wyświetl plik

@ -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