forked from snap-diff/snap_diff-capybara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
60 lines (50 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Usage:
#
# $ docker build . -t csd
# $ docker run -v $(pwd):/app -ti csd rake test
ARG RUBY_VERSION=2.7.2
FROM circleci/ruby:2.7.2-node-browsers
RUN \
# Install dependencies
sudo apt-get update && \
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y \
automake \
build-essential \
curl \
fftw3-dev \
gettext \
gobject-introspection \
gtk-doc-tools \
libexif-dev \
libfftw3-dev \
libgif-dev \
libglib2.0-dev \
libgsf-1-dev \
libgtk2.0-dev \
libmagickwand-dev \
libmatio-dev \
libopenexr-dev \
libopenslide-dev \
liborc-0.4-dev \
libpango1.0-dev \
libpoppler-glib-dev \
librsvg2-dev \
libtiff5-dev \
libwebp-dev \
libxml2-dev \
swig
WORKDIR /app
RUN sudo chmod a+w -R /app
ADD ./bin/install-vips /app/bin/
RUN sudo /app/bin/install-vips
ADD ./lib/capybara/screenshot/diff/version.rb /app/lib/capybara/screenshot/diff/
ADD ./capybara-screenshot-diff.gemspec /app/
ADD ./gems.rb /app/
RUN bundle install
RUN \
# Clean up
sudo apt-get remove -y curl automake build-essential && \
sudo apt-get autoremove -y && \
sudo apt-get autoclean && \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*