Add npm cache clean
This commit is contained in:
parent
cbed44da98
commit
af148d9b75
|
|
@ -25,7 +25,7 @@ RUN mkdir -p /usr/src/app
|
|||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.* /usr/src/app/
|
||||
RUN npm install --production
|
||||
RUN npm install --production && npm cache clean --force
|
||||
COPY . /usr/src/app
|
||||
|
||||
COPY docker/scripts/start.sh /start.sh
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ RUN buildDeps='wget bzip2' && apt-get update && apt -y install $buildDeps && \
|
|||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
COPY . /usr/src/app
|
||||
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production
|
||||
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force
|
||||
WORKDIR /usr/src/app
|
||||
COPY docker/scripts/start-slim.sh /start.sh
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue