forked from WeareJH/ci-build-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (65 loc) · 1.58 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
FROM php:{{VERSION}}-cli-alpine
MAINTAINER JH <[email protected]>
RUN apk --update add \
curl \
git \
knock \
openssh \
mysql-client \
patch \
rsync \
libpng \
libpng-dev \
freetype-dev \
jpeg \
jpeg-dev \
g++ \
icu \
icu-dev \
libmcrypt-dev \
libxslt-dev \
libstdc++ \
libgcc \
libzip-dev \
ruby \
ruby-json \
ruby-bundler \
libsodium-dev \
nodejs \
npm \
yarn \
procps \
perl-utils
RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ --with-freetype-dir=/usr/include/
RUN docker-php-ext-configure zip --with-libzip=/usr/include/
RUN docker-php-ext-install \
gd \
intl \
mbstring \
pdo_mysql \
xsl \
zip \
soap \
bcmath \
mysqli \
opcache \
pcntl \
sockets
RUN [ $(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") -lt 72 ] \
&& docker-php-ext-install \
mcrypt \
; true
RUN [ $(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") -ge 72 ] \
&& docker-php-ext-install \
sodium \
; true
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
ENV PATH=/root/.composer/vendor/bin:$PATH
RUN composer global require wearejh/m2-deploy-recipe:dev-master
RUN composer global config repositories.ci-tool vcs [email protected]:WeareJH/ci-tool.git
RUN composer global require wearejh/ci-tool:dev-master
RUN yarn global add m2-builder@4
RUN mkdir -p /root/build
WORKDIR /root/build
RUN mkdir $HOME/.ssh
COPY ./config/php.ini /usr/local/etc/php/conf.d/php-custom.ini