1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

properly make use of Dockers cache

This commit is contained in:
Steffen Vogel 2017-09-16 19:34:03 +02:00
parent 1175b789d1
commit e67607ddbd

View file

@ -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