create tagged versions

This commit is contained in:
Philipp Kunz 2016-06-04 02:43:39 +02:00
parent 4c75ba6e3f
commit 6499eedc7b
6 changed files with 27 additions and 8 deletions

View File

@ -1,5 +1,9 @@
FROM ubuntu:latest
# Those need to be updated when new node version are released
ENV NODE_VERSION_LTS 4.4.5
ENV NODE_VERSION_STABLE 6.2.1
# Set debconf to run non-interactively
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
@ -19,17 +23,14 @@ RUN apt-get update \
&& rm -r /var/lib/apt/lists/*
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 4.4.1
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash \
&& bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm install $NODE_VERSION_LTS \
&& nvm alias default $NODE_VERSION_LTS \
&& nvm use default \
&& npm install -g npm \
&& npm install -g npmci"
&& npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN node -v && npm -v
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH

1
Dockerfile_lts Normal file
View File

@ -0,0 +1 @@
FROM ht-docker-node

View File

@ -0,0 +1,2 @@
FROM hosttoday/ht-docker-node:latest
RUN npm install -g npmci

2
Dockerfile_npmpage Normal file
View File

@ -0,0 +1,2 @@
FROM hosttoday/ht-docker-node:npmts
RUN npm install -g npmpage

2
Dockerfile_npmts Normal file
View File

@ -0,0 +1,2 @@
FROM ht-docker-node:npmci
RUN npm install -g npmts

11
Dockerfile_stable Normal file
View File

@ -0,0 +1,11 @@
FROM hosttoday/ht-docker-node:latest
ENV NODE_VERSION 6.2.1
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_STABLE \
&& nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \
&& npm install -g npm"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH