Commit e67607dd authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

properly make use of Dockers cache

parent 1175b789
......@@ -4,9 +4,14 @@ FROM node:8.2
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# use changes to package.json to force Docker not to use the cache
# when we change our application's nodejs dependencies:
ADD package.json /usr/src/app
RUN npm install
# Install app dependencies
COPY . /usr/src/app
RUN npm install && npm run build
RUN npm run build
VOLUME /usr/src/app/build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment