Dockerfile in generic_test-0.1.0 vs Dockerfile in generic_test-0.1.1
- old
+ new
@@ -1,23 +1,13 @@
FROM ruby:2.6
MAINTAINER Samuel Garratt
# Required ruby gems
-RUN mkdir /mysuite
-WORKDIR /mysuite
-COPY . /mysuite/
-RUN gem install bundler
-RUN bundle install
-# Install gem within itself
-RUN rake install
+RUN mkdir /test
+WORKDIR /test
+RUN gem install generic_test
-# Virtual Frame buffer
-RUN apt-get update -y \
- && apt-get -y install \
- xvfb \
- && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
-
# Google chrome
ARG CHROME_VERSION="google-chrome-stable"
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-chrome.list \
&& apt-get update -qqy \
@@ -27,6 +17,8 @@
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# Add language settings to handle special characters
RUN export LANG=C.UTF-8
RUN export LANGUAGE=C.UTF-8
-RUN export LC_ALL=C.UTF-8
+RUN export LC_ALL=C.UTF-8
+# By running test image is checked and webdriver will be cached
+RUN generic_test page samuel-garratt.gitlab.io/generic_test/about.html
\ No newline at end of file