Dockerfile optimized
This commit is contained in:
parent
f68d788a81
commit
616cbb1076
|
@ -7,12 +7,11 @@ RUN apt-get update \
|
||||||
curl \
|
curl \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y --no-install-recommends \
|
||||||
nodejs \
|
nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& npm -g install pm2
|
&& npm -g install pm2
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /salix
|
WORKDIR /salix
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
COPY loopback/package.json loopback/
|
COPY loopback/package.json loopback/
|
||||||
|
|
Loading…
Reference in New Issue