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,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`"

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