/
Dockerfile
52 lines (45 loc) · 1.91 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
FROM ruby:3.0.2-slim
# Setup proper UTF-8 locale
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends locales && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo "export LC_ALL=en_US.UTF-8" >> /etc/environment && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "LANG=en_US.UTF-8" > /etc/locale.conf && \
locale-gen en_US.UTF-8
# Install imagemagick and ghostscript
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends imagemagick ghostscript && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Misc packages
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends apt-transport-https cmake yamllint && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install missing libraries from slim
RUN apt-get update --yes && \
apt-get install --yes curl gnupg2 wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mdbtools for importers
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends mdbtools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install node and yarn
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update --yes && \
apt-get install --yes --no-install-recommends nodejs yarn && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb https://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google.list && \
apt-get update --yes && \
apt-get install --yes --no-install-recommends google-chrome-stable && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*