Skip to content

Commit

Permalink
update(Dockerfile): to reduce the layer size, download time/size
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabganji authored and 3cp committed Sep 12, 2019
1 parent ff7911c commit 4e5021e
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions skeleton/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ FROM node:12 as build
ENV DEBIAN_FRONTEND=noninteractive

#update apt-get
RUN apt-get update

RUN apt-get install -y \
#update apt-get
RUN apt-get update && apt-get install -y \
apt-utils \
fonts-liberation \
libappindicator3-1 \
Expand All @@ -23,28 +22,10 @@ RUN apt-get install -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb

# cypress dependencies or use cypress/base images
RUN apt-get install -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb

# install chrome
RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& ( dpkg -i /tmp/google-chrome-stable_current_amd64.deb || apt-get -fy install) \
&& rm -rf /tmp/google-chrome-stable_current_amd64.deb \
&& sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \
"/opt/google/chrome/google-chrome" \
&& google-chrome --version
xvfb \
&& rm -rf /var/lib/apt/lists/*

// @endif

Expand Down

0 comments on commit 4e5021e

Please sign in to comment.