Optimized size of docker images

This commit is contained in:
Juan Ferrer 2019-01-08 18:46:14 +01:00
parent c7510cf247
commit f68d788a81
2 changed files with 5 additions and 4 deletions

View File

@ -3,15 +3,16 @@ FROM debian:stretch-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y apt-utils \
&& apt-get install -y \
&& apt-get install -y --no-install-recommends \
curl \
gnupg2 \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y \
nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& npm -g install pm2
WORKDIR /salix
COPY package.json package-lock.json ./
COPY loopback/package.json loopback/

View File

@ -4,8 +4,8 @@ EXPOSE 80
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y apt-utils \
&& apt-get install -y --no-install-recommends nginx
&& apt-get install -y --no-install-recommends nginx \
&& rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log