-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
97 lines (88 loc) · 2.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
# No need of gem documentation
RUN set -eux; \
{ \
echo 'install: --no-document'; \
echo 'update: --no-document'; \
} >> /etc/gemrc
# Installing ruby
RUN apt-get update && apt-get install -y --no-install-recommends\
ruby ruby-dev graphviz nodejs \
autoconf \
automake \
bison \
bzip2 \
cmake \
dpkg-dev \
file \
g++ \
gcc \
git \
gpg-agent \
imagemagick \
libbz2-dev \
libc6-dev \
libcurl4-openssl-dev \
libdb-dev \
libevent-dev \
libffi-dev \
libgdbm-dev \
libglib2.0-dev \
libgmp-dev \
libjpeg-dev \
libkrb5-dev \
liblzma-dev \
libmagickcore-dev \
libmagickwand-dev \
libmaxminddb-dev \
libncurses5-dev \
libncursesw5-dev \
libpng-dev \
libpq-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libtool \
libwebp-dev \
libxml2-dev \
libxslt-dev \
libyaml-dev \
make \
openssh-client \
patch \
pkg-config \
software-properties-common \
tzdata \
unzip \
wkhtmltopdf \
xz-utils \
zlib1g-dev \
locales && rm -rf /var/lib/apt/lists/*
# Install Mozilla Team PPA
RUN add-apt-repository ppa:mozillateam/ppa
# Installing firefox for Selenium / Capybara
RUN apt-get update && apt-get install -y \
libxpm4 libxrender1 libgtk2.0-0 libnss3 libgconf-2-4 libpango1.0-0 libxss1 \
libxtst6 fonts-liberation libappindicator1 xdg-utils gtk2-engines-pixbuf \
xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable imagemagick \
x11-apps firefox-esr firefox-esr-geckodriver --no-install-recommends
RUN apt-get remove --purge -y gpg-agent software-properties-common && apt-get autoremove --purge -y && rm -rf /var/lib/apt/lists/*
RUN gem install bundler && gem install bundler -v '1.17.3'
# For the most optimal install we download the yarn package directly from
# github and install it. Installing yarn as recommended by
# https://yarnpkg.com/getting-started/install requires installing libssl1.0-dev
# to install npm, which conflicts with libcurl4-openssl-dev and results in the
# installation of a number of additional packages
# Installing it using https://classic.yarnpkg.com/en/docs/install#debian-stable
# also requires the installation of gpgv/gnupg2
ADD https://github.com/yarnpkg/releases/raw/gh-pages/debian/pool/main/y/yarn/yarn_1.22.5_all.deb /yarn_1.22.5_all.deb
RUN dpkg -i /yarn_1.22.5_all.deb
RUN rm /yarn_1.22.5_all.deb
## Set LOCALE to UTF8
#
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure locales && \
/usr/sbin/update-locale LANG=en_US.UTF-8
ENV LC_ALL en_US.UTF-8