-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
61 lines (51 loc) · 1.33 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
FROM docker-prod.affinitic.be/iadelib:cache
LABEL plone=$PLONE_VERSION \
name="PM 4.1" \
description="PloneMeeting 4.1" \
version="4.1" \
maintainer="Affinitic"
COPY --chown=plone docker-initialize.py docker-entrypoint.sh /
USER plone
COPY --chown=plone *.conf *.sh *.cfg Makefile *.py *.txt /home/plone/plone-pm/
COPY --chown=plone scripts /home/plone/plone-pm/scripts
WORKDIR /home/plone/plone-pm
RUN rm -rf src/
RUN sed -i '/^ instance[0-9]/d' prod.cfg \
&& 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
USER root
RUN apt-get purge -y \
build-essential \
libpq-dev \
libreadline-dev \
wget \
git \
subversion \
libpcre3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libbz2-dev \
libffi-dev \
libjpeg62-dev \
libopenjp2-7-dev \
libldap2-dev \
zlib1g-dev \
python-dev \
python-pip \
virtualenv
RUN apt-get autoremove -y \
&& apt-get clean autoclean \
&& rm -rf /home/plone/.buildout/downloads/ /var/lib/apt/lists/* /tmp/* /var/tmp/* /home/plone/.cache
USER plone
WORKDIR /home/plone/plone-pm
ENV ZEO_HOST=db \
ZEO_PORT=8100 \
HOSTNAME_HOST=local \
PROJECT_ID=plone
EXPOSE 8081
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["start"]