mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
node: update images
This commit is contained in:
parent
c20528372f
commit
e65a4030fd
@ -1,38 +1,35 @@
|
|||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
||||||
|
|
||||||
ARG NODE_VER=4.4.7
|
ARG NODE_VERSION=4.4.7
|
||||||
ARG NPM_VER=3
|
ARG NPM_VERSION=3
|
||||||
ARG BUILD_CORES
|
ARG BUILD_CORES
|
||||||
|
|
||||||
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
||||||
&& BUILD_DEPS=" \
|
&& BUILD_DEPS=" \
|
||||||
git \
|
|
||||||
make \
|
make \
|
||||||
gcc \
|
gcc \
|
||||||
g++ \
|
g++ \
|
||||||
python \
|
python \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
paxctl \
|
paxctl \
|
||||||
grep \
|
|
||||||
binutils \
|
|
||||||
binutils-gold \
|
binutils-gold \
|
||||||
openssl \
|
openssl \
|
||||||
ca-certificates" \
|
ca-certificates" \
|
||||||
&& apk -U add \
|
&& apk -U add \
|
||||||
$BUILD_DEPS \
|
${BUILD_DEPS} \
|
||||||
libgcc \
|
libgcc \
|
||||||
libstdc++ \
|
libstdc++ \
|
||||||
&& cd /tmp \
|
&& cd /tmp \
|
||||||
&& wget -qO- https://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER.tar.gz | tar zxf - \
|
&& wget -qO- https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.gz | tar zxf - \
|
||||||
&& cd node-v$NODE_VER \
|
&& cd node-v${NODE_VERSION} \
|
||||||
&& ./configure --prefix=/usr --without-snapshot \
|
&& ./configure --prefix=/usr --without-snapshot \
|
||||||
&& make -j $NB_CORES && make install && make clean \
|
&& make -j ${NB_CORES} && make install && make clean \
|
||||||
&& paxctl -cm /usr/bin/node \
|
&& paxctl -cm /usr/bin/node \
|
||||||
&& npm install -g npm@$NPM_VER \
|
&& npm install -g npm@${NPM_VERSION} \
|
||||||
&& find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf \
|
&& find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf \
|
||||||
&& strip -s /usr/bin/node \
|
&& strip -s /usr/bin/node \
|
||||||
&& apk del $BUILD_DEPS \
|
&& apk del ${BUILD_DEPS} \
|
||||||
&& rm -rf \
|
&& rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/cache/apk/* \
|
/var/cache/apk/* \
|
||||||
|
@ -1,38 +1,35 @@
|
|||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
||||||
|
|
||||||
ARG NODE_VER=6.2.2
|
ARG NODE_VERSION=6.2.2
|
||||||
ARG NPM_VER=3
|
ARG NPM_VERSION=3
|
||||||
ARG BUILD_CORES
|
ARG BUILD_CORES
|
||||||
|
|
||||||
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
||||||
&& BUILD_DEPS=" \
|
&& BUILD_DEPS=" \
|
||||||
git \
|
|
||||||
make \
|
make \
|
||||||
gcc \
|
gcc \
|
||||||
g++ \
|
g++ \
|
||||||
python \
|
python \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
paxctl \
|
paxctl \
|
||||||
grep \
|
|
||||||
binutils \
|
|
||||||
binutils-gold \
|
binutils-gold \
|
||||||
openssl \
|
openssl \
|
||||||
ca-certificates" \
|
ca-certificates" \
|
||||||
&& apk -U add \
|
&& apk -U add \
|
||||||
$BUILD_DEPS \
|
${BUILD_DEPS} \
|
||||||
libgcc \
|
libgcc \
|
||||||
libstdc++ \
|
libstdc++ \
|
||||||
&& cd /tmp \
|
&& cd /tmp \
|
||||||
&& wget -qO- https://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER.tar.gz | tar zxf - \
|
&& wget -qO- https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.gz | tar zxf - \
|
||||||
&& cd node-v$NODE_VER \
|
&& cd node-v${NODE_VERSION} \
|
||||||
&& ./configure --prefix=/usr --without-snapshot \
|
&& ./configure --prefix=/usr --without-snapshot \
|
||||||
&& make -j $NB_CORES && make install && make clean \
|
&& make -j ${NB_CORES} && make install && make clean \
|
||||||
&& paxctl -cm /usr/bin/node \
|
&& paxctl -cm /usr/bin/node \
|
||||||
&& npm install -g npm@$NPM_VER \
|
&& npm install -g npm@${NPM_VERSION} \
|
||||||
&& find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf \
|
&& find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf \
|
||||||
&& strip -s /usr/bin/node \
|
&& strip -s /usr/bin/node \
|
||||||
&& apk del $BUILD_DEPS \
|
&& apk del ${BUILD_DEPS} \
|
||||||
&& rm -rf \
|
&& rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/cache/apk/* \
|
/var/cache/apk/* \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user