-
Notifications
You must be signed in to change notification settings - Fork 125
/
Dockerfile
64 lines (58 loc) · 1.6 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
57
58
59
60
61
62
63
64
FROM php:7.0-fpm-alpine
ARG GIT_BRANCH=stable/2.4.x
ENV FOP_HOME /usr/share/fop-2.1
RUN set -xe \
&& apk add --no-cache --virtual .phpext-builddeps \
gettext-dev \
libmcrypt-dev \
libxslt-dev \
zlib-dev \
libmemcached-dev \
autoconf \
build-base \
&& docker-php-ext-install \
calendar \
gettext \
mbstring \
mcrypt \
mysqli \
opcache \
pdo_mysql \
sockets \
xsl \
zip \
# https://bugs.php.net/bug.php?id=70751
&& curl -Ls https://github.com/websupport-sk/pecl-memcache/archive/NON_BLOCKING_IO_php7.tar.gz | tar xz -C / \
&& cd /pecl-memcache-NON_BLOCKING_IO_php7 \
&& phpize && ./configure && make && make install \
&& docker-php-ext-enable memcache \
&& rm -rf /pecl-memcache-NON_BLOCKING_IO_php7 \
&& apk add --virtual .phpext-rundeps \
gettext \
libmcrypt \
libxslt \
libmemcached-libs \
&& apk del .phpext-builddeps
RUN set -xe \
&& apk add --no-cache --virtual .atom-deps \
openjdk8-jre-base \
ffmpeg \
imagemagick \
ghostscript \
poppler-utils \
nodejs \
make \
bash \
&& npm install -g "less@<2.0.0" \
&& curl -Ls https://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-2.1-bin.tar.gz | tar xz -C /usr/share \
&& ln -sf /usr/share/fop-2.1/fop /usr/local/bin/fop
RUN set -xe \
&& mkdir /atom \
&& curl -Ls https://github.com/artefactual/atom/archive/$GIT_BRANCH.tar.gz | tar xz -C /atom \
&& cd /atom \
&& mv * src \
&& make -C /atom/src/plugins/arDominionPlugin \
&& make -C /atom/src/plugins/arArchivesCanadaPlugin
WORKDIR /atom/src
ENTRYPOINT ["/atom/src/docker/entrypoint.sh"]
CMD ["fpm"]