-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (27 loc) · 947 Bytes
/
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
# syntax=docker/dockerfile:1
ARG PLONE_VERSION=6
FROM plone/server-builder:${PLONE_VERSION} as builder
WORKDIR /app
# Add local code
COPY . src/collective.ploneintranet
# Install local requirements and pre-compile mo files
RUN <<EOT
set -e
mv src/collective.ploneintranet/requirements-docker.txt ./requirements.txt
bin/pip install -r requirements.txt
bin/python /compile_mo.py
rm -Rf src/ /compile_mo.py compile_mo.log
EOT
FROM plone/server-prod-config:${PLONE_VERSION}
LABEL maintainer="Plone Collective <[email protected]>" \
org.label-schema.name="collective/plone-intranet:backend" \
org.label-schema.description="Plone Intranet distribution backend." \
org.label-schema.vendor="Plone Foundation"
# Disable MO Compilation
ENV zope_i18n_compile_mo_files=
# Show only our distributions
ENV ALLOWED_DISTRIBUTIONS=intranet-volto
COPY --from=builder /app /app
RUN <<EOT
ln -s /data /app/var
EOT