This repository has been archived by the owner on May 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (34 loc) · 1.63 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
FROM ghcr.io/unb-libraries/drupal:9.x-2.x-unblib
MAINTAINER UNB Libraries <libsupport@unb.ca>
# Install additional OS packages.
ENV ADDITIONAL_OS_PACKAGES postfix php7-ldap php7-xmlreader php7-zip php7-redis
ENV DRUPAL_SITE_ID aaslp
ENV DRUPAL_SITE_URI slaveryandfreedomlaws.lib.unb.ca
ENV DRUPAL_SITE_UUID 842a4c70-3da8-41a9-8948-9dbec80be2bd
# Build application.
COPY ./build/ /build/
RUN ${RSYNC_MOVE} /build/scripts/container/ /scripts/ && \
/scripts/addOsPackages.sh && \
/scripts/initOpenLdap.sh && \
/scripts/setupStandardConf.sh && \
/scripts/build.sh
# Deploy configuration.
COPY ./config-yml ${DRUPAL_CONFIGURATION_DIR}
RUN /scripts/pre-init.d/72_secure_config_sync_dir.sh
# Deploy custom modules, themes.
COPY ./custom/themes ${DRUPAL_ROOT}/themes/custom
COPY ./custom/modules ${DRUPAL_ROOT}/modules/custom
# Container metadata.
LABEL ca.unb.lib.generator="drupal9" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="slaveryandfreedomlaws.lib.unb.ca is the slaveryandfreedomlaws application at UNB Libraries." \
org.label-schema.name="slaveryandfreedomlaws.lib.unb.ca" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://slaveryandfreedomlaws.lib.unb.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/slaveryandfreedomlaws.lib.unb.ca" \
org.label-schema.vendor="University of New Brunswick Libraries" \
org.label-schema.version=$VERSION \
org.opencontainers.image.source="https://github.com/unb-libraries/slaveryandfreedomlaws.lib.unb.ca"