Skip to content

Commit

Permalink
add build to ONBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano committed May 25, 2017
1 parent 5d5580a commit e00e35d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ COPY ["package.json", "/usr/src/"]

WORKDIR /usr/src

RUN npm install --quiet --production
ENV NODE_ENV=production \
NODE_PATH=/usr/src

RUN npm install --quiet

COPY [".", "/usr/src/"]

ONBUILD COPY ["ext", "ext"]
RUN npm run build -- --minify

ONBUILD RUN bin/dos-ext-install --quiet --production
EXPOSE 3000

ENV NODE_ENV=production \
NODE_PATH=/usr/src
ONBUILD COPY ["ext", "ext"]

RUN npm run build -- --minify
ONBUILD RUN bin/dos-ext-install --quiet

EXPOSE 3000
ONBUILD RUN npm run build -- --minify

CMD ["node", "."]

0 comments on commit e00e35d

Please sign in to comment.