Dockerfile optimized

This commit is contained in:
Juan Ferrer 2019-01-08 18:51:41 +01:00
parent f68d788a81
commit 616cbb1076
1 changed files with 1 additions and 2 deletions

View File

@ -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/