-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
108 lines (92 loc) · 2.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
FROM debian:stretch
RUN echo 'deb http://deb.debian.org/debian stretch contrib non-free' >> /etc/apt/sources.list
RUN echo 'deb-src http://deb.debian.org/debian stretch contrib non-free' >> /etc/apt/sources.list
RUN apt-get -y update \
&& apt-get -y install \
apt-transport-https \
ca-certificates \
wget
RUN apt-get -yq install \
python-pip\
gcc\
python-dev
RUN pip install --no-cache-dir --upgrade mwscan
RUN wget -O "/etc/apt/trusted.gpg.d/php.gpg" "https://packages.sury.org/php/apt.gpg" \
&& sh -c 'echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list'
RUN apt-get -y update \
&& apt-get -y install \
git \
curl \
# php7.1-cli \
# php7.1-curl \
# php7.1-dev \
# php7.1-gd \
# php7.1-intl \
# php7.1-mcrypt \
# php7.1-mysql \
# php7.1-mbstring \
# php7.1-xml \
# php7.1-xsl \
# php7.1-zip \
# php7.1-json \
# php7.1-soap \
# php7.1-bcmath \
# php7.2 \
# php7.2-common \
# php7.2-cli \
# php7.2-curl \
# php7.2-dev \
# php7.2-gd \
# php7.2-intl \
# php7.2-mysql \
# php7.2-mbstring \
# php7.2-xml \
# php7.2-xsl \
# php7.2-zip \
# php7.2-json \
# php7.2-xdebug \
# php7.2-soap \
# php7.2-bcmath \
php7.4 \
php7.4-common \
php7.4-cli \
php7.4-curl \
php7.4-dev \
php7.4-gd \
php7.4-intl \
php7.4-mysql \
php7.4-mbstring \
php7.4-xml \
php7.4-xsl \
php7.4-zip \
php7.4-json \
php7.4-xdebug \
php7.4-soap \
php7.4-bcmath \
zip \
mysql-client \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
ENV PHP_MEMORY_LIMIT=2G
RUN curl -LO https://getcomposer.org/composer-stable.phar \
&& mv ./composer-stable.phar ./composer.phar \
&& chmod +x ./composer.phar \
&& mv ./composer.phar /usr/local/bin/composer\
&& /usr/local/bin/composer self-update --1
COPY LICENSE README.md /
COPY scripts /opt/scripts
COPY config /opt/config
COPY entrypoint.sh /entrypoint.sh
RUN cd /opt/config/php-deployer/ && composer install
RUN mkdir /opt/magerun/ \
&& cd /opt/magerun/ \
&& curl -sS -O https://files.magerun.net/n98-magerun2-latest.phar \
&& curl -sS -o n98-magerun2-latest.phar.sha256 https://files.magerun.net/sha256.php?file=n98-magerun2-latest.phar \
&& shasum -a 256 -c n98-magerun2-latest.phar.sha256
ENTRYPOINT ["/entrypoint.sh"]