Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce image sizes #83

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions base/10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM node:10.13

RUN apt-get update && \
apt-get install -y \
apt-get install --no-install-recommends -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb
libxtst6 \
bahmutov marked this conversation as resolved.
Show resolved Hide resolved
xvfb && \
rm -rf /var/lib/apt/lists/*

# versions of local tools
RUN node -v
Expand Down
6 changes: 4 additions & 2 deletions base/4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM node:4.8.4

RUN apt-get update && \
apt-get install -y \
apt-get install --no-install-recommends -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb
libxtst6 \
xvfb && \
rm -rf /var/lib/apt/lists/*
6 changes: 4 additions & 2 deletions base/6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM node:6.14

RUN apt-get update && \
apt-get install -y \
apt-get install --no-install-recommends -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb
libxtst6 \
xvfb && \
rm -rf /var/lib/apt/lists/*

# versions of local tools
RUN node -v
Expand Down
6 changes: 4 additions & 2 deletions base/8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM node:8.12

RUN apt-get update && \
apt-get install -y \
apt-get install --no-install-recommends -y \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
xvfb
libxtst6 \
xvfb && \
rm -rf /var/lib/apt/lists/*

RUN npm install -g npm@6.4.1

Expand Down
33 changes: 17 additions & 16 deletions base/ubuntu16/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
FROM ubuntu:16.04

RUN apt-get update && \
apt-get install -y apt-transport-https curl
apt-get install --no-install-recommends -y \
apt-transport-https \
ca-certificates \
curl && \
rm -rf /var/lib/apt/lists/*

RUN touch /etc/apt/sources.list.d/nodesource.list
RUN echo "deb https://deb.nodesource.com/node_6.x xenial main" > /etc/apt/sources.list.d/nodesource.list
RUN echo "deb-src https://deb.nodesource.com/node_6.x xenial main" >> /etc/apt/sources.list.d/nodesource.list

RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN apt-get update

# Should install Node 6
RUN apt-get install -y nodejs

# Install Git client
RUN apt-get update && apt-get install -y git
RUN git --version

# Install Cypress dependencies (separate commands to avoid time outs)
RUN apt-get install -y \
libgtk2.0-0
RUN apt-get install -y \
libnotify-dev
RUN apt-get install -y \
RUN apt-get update && \
apt-get install --no-install-recommends -y \
nodejs \
git \
libgtk2.0-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1
RUN apt-get install -y \
libxss1 \
libasound2 \
xvfb
libxtst6 \
xvfb && \
rm -rf /var/lib/apt/lists/*

RUN git --version
8 changes: 4 additions & 4 deletions browsers/chrome63-ff57/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
apt-get install --no-install-recommends -y \
dbus-x11 \
google-chrome-stable \
zip && \
rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
Expand All @@ -25,9 +28,6 @@ RUN wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.moz
&& rm /tmp/firefox.tar.bz2 \
&& ln -fs /opt/firefox/firefox /usr/bin/firefox

# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip

# versions of local tools
RUN google-chrome --version
RUN firefox --version
Expand Down
8 changes: 4 additions & 4 deletions browsers/chrome65-ff57/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
apt-get install --no-install-recommends -y \
dbus-x11 \
google-chrome-stable \
zip && \
rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
Expand All @@ -25,9 +28,6 @@ RUN wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.moz
&& rm /tmp/firefox.tar.bz2 \
&& ln -fs /opt/firefox/firefox /usr/bin/firefox

# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip

# versions of local tools
RUN google-chrome --version
RUN firefox --version
Expand Down
8 changes: 4 additions & 4 deletions browsers/chrome67-ff57/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
apt-get install --no-install-recommends -y \
dbus-x11 \
google-chrome-stable \
zip && \
rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
Expand All @@ -25,9 +28,6 @@ RUN wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.moz
&& rm /tmp/firefox.tar.bz2 \
&& ln -fs /opt/firefox/firefox /usr/bin/firefox

# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip

# versions of local tools
RUN node -v
RUN npm -v
Expand Down
8 changes: 4 additions & 4 deletions browsers/chrome67/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
apt-get install --no-install-recommends -y \
dbus-x11 \
google-chrome-stable \
zip && \
rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip

# versions of local tools
RUN node -v
RUN npm -v
Expand Down
8 changes: 4 additions & 4 deletions browsers/chrome69/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y dbus-x11 google-chrome-stable && \
apt-get install --no-install-recommends -y \
dbus-x11 \
google-chrome-stable \
zip && \
rm -rf /var/lib/apt/lists/*

# "fake" dbus address to prevent errors
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

# Add zip utility - it comes in very handy
RUN apt-get update && apt-get install -y zip

# versions of local tools
RUN node -v
RUN npm -v
Expand Down