forked from artefactual/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
84 lines (72 loc) · 2.17 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM php:7.4-fpm-alpine
ENV FOP_HOME=/usr/share/fop-2.1 \
COMPOSER_ALLOW_SUPERUSER=1 \
LD_PRELOAD=/usr/lib/preloadable_libiconv.so
RUN set -xe \
&& apk add --no-cache --virtual .phpext-builddeps \
gettext-dev \
libxslt-dev \
zlib-dev \
libmemcached-dev \
libzip-dev \
oniguruma-dev \
autoconf \
build-base \
openldap-dev \
&& docker-php-ext-install \
calendar \
gettext \
mbstring \
mysqli \
opcache \
pcntl \
pdo_mysql \
sockets \
xsl \
zip \
ldap \
&& pecl install apcu pcov \
&& 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 \
&& cd / && rm -rf /pecl-memcache-NON_BLOCKING_IO_php7 \
&& docker-php-ext-enable apcu memcache pcov \
&& apk add --no-cache --virtual .phpext-rundeps \
gettext \
libxslt \
libmemcached-libs \
libzip \
openldap-dev \
&& apk del .phpext-builddeps \
&& pecl clear-cache \
&& apk add --no-cache --virtual .atom-deps \
openjdk8-jre-base \
ffmpeg \
imagemagick \
ghostscript \
poppler-utils \
npm \
make \
bash \
gnu-libiconv \
fcgi \
&& npm install -g "less@<4.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 \
&& echo "extension=ldap.so" > /usr/local/etc/php/conf.d/docker-php-ext-ldap.ini
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
COPY composer.* /atom/build/
RUN set -xe && composer install -d /atom/build
COPY package* /atom/build/
RUN set -xe && npm install --prefix /atom/build
COPY . /atom/src
WORKDIR /atom/src
RUN set -xe \
&& mv /atom/build/vendor/composer vendor/ \
&& mv /atom/build/node_modules . \
&& make -C plugins/arDominionPlugin \
&& make -C plugins/arArchivesCanadaPlugin \
&& npm run build \
&& rm -rf /atom/build
ENTRYPOINT ["docker/entrypoint.sh"]
CMD ["fpm"]