From 05a2f7f3161cc037bc8012ac932c4408e955adb6 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 21 Jan 2017 08:38:04 -0600 Subject: [PATCH] Specifically add files so they can be cached by Docker. --- Dockerfile-webpack | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile-webpack b/Dockerfile-webpack index 848070e..f6ef5fb 100644 --- a/Dockerfile-webpack +++ b/Dockerfile-webpack @@ -1,9 +1,9 @@ FROM node:7.3.0 RUN mkdir /code WORKDIR /code -ADD ./bikeshop_project /code +ADD ./bikeshop_project/package.json package.json RUN npm install RUN npm install -g bower -COPY ./bower.json . +ADD ./bikeshop_project/bower.json bower.json RUN bower install --allow-root EXPOSE 3000:3000