Add NODE_ENV ARG to all Dockerfiles

This commit is contained in:
Christopher Horrell 2016-09-19 11:12:54 -04:00
parent 3502ce7b18
commit 3e39810622
4 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ FROM node:0.10.46
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

View File

@ -3,6 +3,7 @@ FROM node:0.12.15
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

View File

@ -3,6 +3,7 @@ FROM node:4.5.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

View File

@ -3,6 +3,7 @@ FROM node:6.6.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ONBUILD ARG NODE_ENV
ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app