-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-cache
90 lines (76 loc) · 2.27 KB
/
Dockerfile-cache
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
FROM ubuntu:22.04
RUN apt-get -qy update && apt-get -o APT::Install-Recommends=false -qy install bash-completion curl htop locales make ncurses-term software-properties-common telnet tzdata vim
RUN ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
RUN echo "Europe/Brussels" > /etc/timezone; dpkg-reconfigure -f noninteractive tzdata
RUN groupadd -g 209 plone
RUN useradd --shell /bin/bash -u 913 -g 209 -o -c "Plone user" -m plone
ARG repo=buildout.iadelib
RUN mkdir -p /home/plone/.buildout/downloads \
&& mkdir -p /home/plone/.buildout/eggs
ENV HOME=/home/plone
COPY default.cfg /home/plone/.buildout/default.cfg
RUN chown -R plone:plone /home/plone
RUN apt-get update \
&& apt full-upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
libreadline-dev \
wget \
git \
curl \
subversion \
libpcre3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libbz2-dev \
libffi-dev \
libjpeg62-dev \
libopenjp2-7-dev \
zlib1g-dev \
python2.7-dev \
python2.7 \
imagemagick \
graphicsmagick \
ghostscript \
poppler-utils \
ruby \
libmagic1 \
libjpeg62 \
libopenjp2-7 \
libpython3.6 \
python3-uno \
libldap2-dev \
libldap-2.4-2 \
libsasl2-dev
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && python2.7 get-pip.py
# ---------
# MS CORE FONTS
# ---------
# from http://askubuntu.com/a/25614
RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
RUN apt-get install -y --no-install-recommends fontconfig ttf-mscorefonts-installer
ADD localfonts.conf /etc/fonts/local.conf
COPY fonts/* /usr/share/fonts/truetype/
RUN fc-cache -f -v
RUN apt-get install -y \
libreoffice \
libreoffice-script-provider-python \
cabextract \
default-jre \
libreoffice-java-common \
lynx
RUN apt-get full-upgrade -y -q
RUN gem install docsplit
USER plone
WORKDIR /home/plone/
RUN git clone https://github.com/affinitic/${repo}.git ${repo}
WORKDIR /home/plone/${repo}
RUN mkdir -p var/filestorage/ \
&& touch var/filestorage/Data.fs \
&& make requirements.txt \
&& pip install -r requirements.txt \
&& /home/plone/.local/bin/buildout -t 60 -Nc docker.cfg
WORKDIR /home/plone/
RUN rm -rf ${repo}