-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
52 lines (46 loc) · 1.23 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
FROM php:8.2-apache
MAINTAINER Fabrizio Balliano <[email protected]>
RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
libxslt1-dev \
libonig-dev \
git \
vim \
wget \
lynx \
psmisc \
zip unzip \
&& apt-get clean
RUN docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-install \
gd \
intl \
mbstring \
pdo_mysql \
xsl \
zip \
opcache \
bcmath \
soap \
sockets
ADD https://raw.githubusercontent.com/colinmollenhour/credis/master/Client.php /credis.php
ADD php.ini /usr/local/etc/php/conf.d/888-fballiano.ini
ADD register-host-on-redis.php /register-host-on-redis.php
ADD unregister-host-on-redis.php /unregister-host-on-redis.php
ADD start.sh /start.sh
RUN COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
RUN usermod -u 1000 www-data; \
a2enmod rewrite; \
curl -o n98-magerun2.phar http://files.magerun.net/n98-magerun2-latest.phar; \
chmod +x ./n98-magerun2.phar; \
chmod +x /start.sh; \
chmod +r /credis.php; \
mv n98-magerun2.phar /usr/local/bin/; \
mkdir -p /root/.composer
CMD ["/start.sh"]