-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
47 lines (42 loc) · 1.13 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
# Usage:
#
# $ docker build . -t csd
# $ docker run -v $(pwd):/app -ti csd rake test
FROM --platform=linux/amd64 jetthoughts/cimg-ruby:3.3-chrome
# Install dependencies and clean up in one layer to reduce image size
RUN 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 \
libvips-dev \
libwebp-dev \
libxml2-dev \
swig && \
sudo apt-get autoremove -y && \
sudo apt-get autoclean && \
sudo apt-get clean && \
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
# Set the location for Bundler to store gems
RUN sudo mkdir /bundle && sudo chmod a+w+r /bundle
ENV BUNDLE_PATH=/bundle