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