-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
36 lines (31 loc) · 1.29 KB
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
FROM php:7.3-cli
LABEL maintainer="Johannes Kees <johannes@lets-byte.it>"
# Install our basic tools ssh & rsync
RUN apt-get update -yqq && apt-get install -y \
git \
zlib1g \
openssh-client \
bash \
rsync \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev
RUN pecl install mcrypt-1.0.3
# Disable host key checking for ssh
RUN mkdir /root/.ssh
COPY config /root/.ssh/config
RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
&& curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig \
&& php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }"\
&& php /tmp/composer-setup.php --no-ansi --install-dir=/usr/bin --filename=composer \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip \
&& docker-php-ext-enable mbstring \
&& docker-php-ext-enable zip \
&& docker-php-ext-enable mcrypt
# Just a test for auto-build with dockerhub