Skip to content

Instantly share code, notes, and snippets.

@skippednote
Created November 14, 2020 05:41
Show Gist options
  • Save skippednote/6ee5e0d87d2afac35f5d6b66cab9296b to your computer and use it in GitHub Desktop.
Save skippednote/6ee5e0d87d2afac35f5d6b66cab9296b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set e+x
export DOCKER_BUILDKIT=1
LOCAL_NAME=skippednote/drupal-cypress:1.0.4
echo "Building $LOCAL_NAME"
docker build \
-t $LOCAL_NAME \
--build-arg DRUPALBASE_VERSION=php7.4 \
--build-arg NODE_VERSION=14.x .
ARG DRUPALBASE_VERSION
ARG NODE_VERSION
FROM hussainweb/drupal-base:${DRUPALBASE_VERSION}
ENV TERM xterm
ENV QT_X11_NO_MITSHM 1
ENV _X11_NO_MITSHM 1
ENV _MITSHM 0
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - &&\
curl 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 --no-install-recommends -y \
libgtk2.0-0 \
libgtk-3-0 \
libnotify-dev \
libgconf-2-4 \
libnss3 \
libxss1 \
libasound2 \
libxtst6 \
xauth \
xvfb \
libgbm-dev \
nodejs \
google-chrome-stable \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment