dont install twice
This commit is contained in:
parent
39050124a8
commit
948776af62
|
@ -5,7 +5,6 @@ WORKDIR /opt/code
|
|||
COPY . /opt/code
|
||||
|
||||
RUN rm -rf node_modules package-lock.json yarn.lock && \
|
||||
npm i && \
|
||||
./install
|
||||
|
||||
CMD [ "npm", "run", "dev" ]
|
||||
|
|
|
@ -5,7 +5,6 @@ WORKDIR /opt/code
|
|||
COPY . /opt/code
|
||||
|
||||
RUN rm -rf node_modules package-lock.json yarn.lock && \
|
||||
npm i --prod && \
|
||||
./install
|
||||
|
||||
CMD [ "npm", "run", "prod" ]
|
||||
|
|
Loading…
Reference in New Issue