File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ RUN curl -sL https://deb.nodesource.com/setup_5.x | bash - \
26
26
file \
27
27
python \
28
28
openjdk-7-jre \
29
- nodejs \
29
+ nodejs \
30
30
&& rm -rf /var/lib/apt/lists/* \
31
31
&& apt-get clean
32
32
@@ -37,7 +37,13 @@ RUN curl -sSL https://get.docker.com/builds/Linux/x86_64/docker-1.9.1 > /usr/bin
37
37
# Current directory is always /dashboard
38
38
WORKDIR /dashboard
39
39
40
- COPY ./ ./
40
+ # Copy over package.json bower.json and postinstall.sh.
41
+ # Why? Because of docker caching, npm install will only run again if one of these have changed
42
+ COPY package.json bower.json ./
43
+ COPY build/postinstall.sh build/
41
44
42
45
# Install all npm deps, bower deps and godep. This will take a while.
43
46
RUN npm install --unsafe-perm
47
+
48
+ # Copy over the rest of the source
49
+ COPY ./ ./
You can’t perform that action at this time.
0 commit comments