-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (33 loc) · 921 Bytes
/
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
FROM composer:1.5.1 AS composer
FROM php:7.2-alpine3.7
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN apk update && apk upgrade && \
docker-php-source extract && \
# transitory packages
apk add --no-cache --virtual .build-dependencies \
zlib-dev \
cyrus-sasl-dev \
autoconf \
g++ \
libtool \
pcre-dev && \
# included packages
apk add --no-cache \
nodejs-npm \
git \
make \
libzip-dev \
postgresql-dev imagemagick-dev && \
pecl install imagick && \
pecl install xdebug && \
pecl install zip && \
docker-php-ext-enable imagick xdebug zip && \
docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
docker-php-ext-install pgsql pdo_pgsql && \
apk del .build-dependencies && \
rm -rf /var/cache/apk/*
COPY etc/php/php.ini /etc/php/
COPY op /opt/TalentCloud/op/
WORKDIR /opt/TalentCloud/
CMD ["/opt/TalentCloud/op/up.sh"]
#CMD ["sleep", "1000000"]