-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (28 loc) · 996 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
36
# syntax=docker/dockerfile:1
ARG PLONE_VERSION=6
FROM plone/server-builder:${PLONE_VERSION} as builder
WORKDIR /app
# Add local code
COPY ./sources sources
COPY . src/plonegovbr.portal_leg
# Install local requirements and pre-compile mo files
RUN <<EOT
set -e
mv src/plonegovbr.portal_leg/requirements-docker.txt ./requirements.txt
bin/pip install -r requirements.txt
bin/python /compile_mo.py
rm -Rf src/ sources/ /compile_mo.py compile_mo.log
EOT
FROM plone/server-prod-config:${PLONE_VERSION}
LABEL maintainer="PloneGov-Br <portalbrasil@plone.org.br>" \
org.label-schema.name="ghcr.io/plonegovbr/portal_leg" \
org.label-schema.description="Uma distribuição Plone para instituições do legislativo brasileiras." \
org.label-schema.vendor="PloneGov-Br"
# Disable MO Compilation
ENV zope_i18n_compile_mo_files=
# Show only our distributions
ENV ALLOWED_DISTRIBUTIONS=portal_leg
COPY --from=builder /app /app
RUN <<EOT
ln -s /data /app/var
EOT