-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
81 lines (71 loc) · 2.49 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
ARG PHP_VERSION
#FROM php:$PHP_VERSION
FROM ghcr.io/mvorisek/image-php:$PHP_VERSION-debian
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN composer --version && php -v
RUN apt-get update && apt-get install -y --no-install-recommends git curl zip unzip \
zlib1g-dev libzip-dev libmcrypt-dev libmagickwand-dev libgmp-dev libonig-dev unixodbc unixodbc-dev freetds-dev rsync freetds-bin tdsodbc \
tini \
unzip \
vim \
apt-transport-https \
git \
openssh-client \
xz-utils \
software-properties-common \
zip \
default-mysql-client \
zsh
RUN apt-get -y upgrade
# pdo opcache pdo_dblib \ sockets \ shmop \ snmp \ pspell \ sysvmsg \ tidy xls sysvsem \ sysvshm \
#RUN phpModules=" \
# bcmath \
# bz2 \
# calendar \
# dba \
# exif \
# gd \
# intl \
# gettext \
# gmp \
# mbstring \
# mysqli \
# pdo_mysql \
# zip \
# " \
# && docker-php-ext-install $phpModules
#RUN phpModules="Imagick/imagick@65e27f2bc0" && docker-php-ext-install $phpModules
#RUN pecl install igbinary
# && pecl install imagick \
# && docker-php-ext-enable imagick
#ARG IMAGICK_VERSION=3.7.0
# Imagick is installed from the archive because regular installation fails
# See: https://github.com/Imagick/imagick/issues/643#issuecomment-1834361716
#RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_VERSION}.tar.gz \
# && tar --strip-components=1 -xf /tmp/imagick.tar.gz \
# && phpize \
# && ./configure \
# && make \
# && make install \
# && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini \
# && rm -rf /tmp/*
# # <<< End of Imagick installation
#RUN docker-php-ext-enable imagick
# Install linting tools
RUN composer global require phpunit/phpunit phpmd/phpmd squizlabs/php_codesniffer deployer/deployer
# Install static analysis tools
#RUN composer global require phpstan/phpstan vimeo/psalm phan/phan
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y \
--no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g npm@latest
RUN npm install -g pnpm
RUN apt-get autoremove -y --purge \
&& apt-get autoclean -y \
&& apt-get clean -y \
&& rm -rf /var/cache/debconf/*-old \
&& rm -rf /usr/share/doc/* \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/*
CMD ["bash"]