-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (50 loc) · 2.12 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:1.x-7.x
ARG OMEKA_VERSION=3.1.2
ENV OMEKA_ARCHIVE_FILE="omeka-s-${OMEKA_VERSION}.zip"
ENV OMEKA_DOWNLOAD_URL="https://github.com/omeka/omeka-s/releases/download/v${OMEKA_VERSION}/${OMEKA_ARCHIVE_FILE}"
ENV OMEKA_INSTALLED_MARKER="${APP_WEBROOT}/files/.omeka_installed"
ENV SITE_URI="exhibits.lib.unb.ca"
ENV RSYNC_FLAGS="--quiet"
ENV RSYNC_COPY="rsync -a --inplace --no-compress ${RSYNC_FLAGS}"
ENV RSYNC_MOVE="${RSYNC_COPY} --remove-source-files"
COPY build /build
RUN apk --no-cache add \
imagemagick \
mysql-client \
php-dom \
php-ctype \
php-fileinfo \
php-mbstring \
php-pdo \
php-pdo_mysql \
php-session \
php-tokenizer \
php-xml \
php-xmlwriter \
rsync && \
curl -LO ${OMEKA_DOWNLOAD_URL} && mv ${OMEKA_ARCHIVE_FILE} /tmp && cd /tmp && unzip -q ${OMEKA_ARCHIVE_FILE} && rm ${OMEKA_ARCHIVE_FILE} && \
${RSYNC_MOVE} /tmp/omeka-s/ /app/html/ && \
${RSYNC_MOVE} /build/config/ /app/html/config/ && \
${RSYNC_MOVE} /build/package-conf/nginx/ /etc/nginx/conf.d/ && \
${RSYNC_MOVE} /build/package-conf/php/conf.d/ /etc/php7/conf.d/ && \
${RSYNC_MOVE} /build/scripts/ /scripts/ && \
/scripts/installModules.sh && \
/scripts/installThemes.sh
# Metadata
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL ca.unb.lib.generator="omeka" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="exhibits.lib.unb.ca provides moderate scale digital exhibits at UNB Libraries." \
org.label-schema.name="exhibits.lib.unb.ca" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://exhibits.lib.unb.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/exhibits.lib.unb.ca" \
org.label-schema.vendor="University of New Brunswick Libraries" \
org.label-schema.version=$VERSION \
org.opencontainers.image.authors="UNB Libraries <libsupport@unb.ca>" \
org.opencontainers.image.source="https://github.com/unb-libraries/exhibits.lib.unb.ca"