-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDockerfile
33 lines (28 loc) · 1.45 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
# syntax=docker/dockerfile:1.5.1
FROM drupal
ARG TARGETARCH
ARG COMMIT=0.5.2
ARG FILE=${COMMIT}.tar.gz
ARG URL=https://github.com/Islandora/islandora-starter-site/archive/${FILE}
ARG SHA256=456cdae4240d8cdebe4da7eee5820acf0d8c023a94e85be06acdf20dd04ded82
# Platform agnostic does not require arch specific identifier.
RUN --mount=type=cache,id=test-downloads-${TARGETARCH},sharing=locked,target=/opt/downloads \
download.sh \
--url "${URL}" \
--sha256 "${SHA256}" \
--strip \
--dest "/var/www/drupal" \
&& \
cleanup.sh
# Import Default content, includes content normally included via migrate import.
# So that the links between the default content and the tags work correctly (linked by UUID rather than ID).
RUN --mount=type=bind,source=rootfs/var/www/drupal/assets/patches/default_settings.txt,target=/var/www/drupal/assets/patches/default_settings.txt \
--mount=type=bind,source=rootfs/var/www/drupal/web/modules/custom,target=/var/www/drupal/web/modules/custom \
--mount=type=cache,id=test-drupal-composer-${TARGETARCH},sharing=locked,target=/root/.composer/cache \
composer -d /var/www/drupal config minimum-stability dev && \
composer -d /var/www/drupal config repositories.sample_core path ./web/modules/custom/sample_core && \
composer -d /var/www/drupal require 'islandora/sample_core:*' && \
composer install -d /var/www/drupal && \
cleanup.sh
COPY --link rootfs /
RUN chown -R nginx:nginx /var/www