-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
56 lines (52 loc) · 1.75 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
FROM ghcr.io/unb-libraries/nginx-php:2.x
ENV DRUPAL_ADMIN_ACCOUNT_NAME="admin"
ENV DRUPAL_CONFIGURATION_DIR="$APP_ROOT/configuration"
ENV DRUPAL_ROOT="$APP_WEBROOT"
ENV DRUPAL_SITE_ID="defaultd"
ENV DRUPAL_SITE_UUID="FALSE"
ENV DRUPAL_TESTING_ROOT="$APP_ROOT/tests"
ENV DRUPAL_CHOWN_PUBLIC_FILES_STARTUP="FALSE"
ENV DRUPAL_UNIT_TEST_MODULES="''"
ENV DRUSH=""doas -u $NGINX_RUN_USER -- /app/html/vendor/bin/drush --root=$DRUPAL_ROOT --uri=default --yes""
ENV DRUSH_PHP="/usr/bin/php"
# Install required packages, libraries.
COPY ./build /build
RUN apk --no-cache add \
doas \
mysql-client \
php7-ctype \
php7-dom \
php7-dom \
php7-fileinfo \
php7-intl \
php7-mbstring \
php7-mysqlnd \
php7-opcache \
php7-pcntl \
php7-pecl-uploadprogress \
php7-pdo \
php7-pdo_mysql \
php7-posix \
php7-session \
php7-simplexml \
php7-tokenizer \
php7-xmlwriter \
redis \
yq && \
$RSYNC_MOVE /build/scripts/ /scripts/ && \
$RSYNC_MOVE /build/data/htaccess/ /security_htaccess && \
/scripts/setupDoasConf.sh && \
/scripts/linkDrupalCronEntryInit.sh && \
rm -rf ~/.composer/cache
# Volumes
VOLUME /app/html/sites/default
LABEL ca.unb.lib.generator="drupal9" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="docker-drupal is the base drupal image at UNB Libraries." \
org.label-schema.name="drupal" \
org.label-schema.url="https://github.com/unb-libraries/docker-drupal" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/docker-drupal" \
org.label-schema.version=$VERSION \
org.opencontainers.image.authors="UNB Libraries <libsupport@unb.ca>" \
org.opencontainers.image.source="https://github.com/unb-libraries/docker-drupal"