Skip to content

Commit

Permalink
Better use docker caching
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed Dec 22, 2016
1 parent 4a00a13 commit 225a291
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ RUN yum -y install bzip2 tar git nodejs npm ImageMagick; yum clean all

RUN npm install grunt-cli -g

RUN mkdir -p /usr/src/mosaico
COPY . /usr/src/mosaico
WORKDIR /usr/src/mosaico
RUN npm install
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /opt/mosaico && cp -a /tmp/node_modules /opt/mosaico/

WORKDIR /opt/mosaico
ADD . /opt/mosaico

EXPOSE 9006

Expand Down

0 comments on commit 225a291

Please sign in to comment.