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:
parent
1175b789d1
commit
e67607ddbd
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue