-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
169 lines (153 loc) · 3.61 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
FROM debian:bullseye
LABEL org.opencontainers.image.source="https://github.com/MAD-I-T/magento-actions"
RUN echo 'deb http://deb.debian.org/debian bullseye contrib non-free' >> /etc/apt/sources.list
RUN echo 'deb-src http://deb.debian.org/debian bullseye 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 \
python3-pip\
python3-setuptools\
gcc\
python-dev
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/ bullseye main" > /etc/apt/sources.list.d/php.list'
RUN apt-get install -f libgd3 -y
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.3 \
php7.3-common \
php7.3-cli \
php7.3-curl \
php7.3-dev \
php7.3-gd \
php7.3-intl \
php7.3-mysql \
php7.3-mbstring \
php7.3-xml \
php7.3-xsl \
php7.3-zip \
php7.3-json \
php7.3-xdebug \
php7.3-soap \
php7.3-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 \
php8.1 \
php8.1-common \
php8.1-cli \
php8.1-curl \
php8.1-dev \
php8.1-gd \
php8.1-intl \
php8.1-mysql \
php8.1-mbstring \
php8.1-xml \
php8.1-xsl \
php8.1-zip \
php8.1-xdebug \
php8.1-soap \
php8.1-bcmath \
php8.2 \
php8.2-common \
php8.2-cli \
php8.2-curl \
php8.2-dev \
php8.2-gd \
php8.2-intl \
php8.2-mysql \
php8.2-mbstring \
php8.2-xml \
php8.2-xsl \
php8.2-zip \
php8.2-xdebug \
php8.2-soap \
php8.2-bcmath \
php8.3 \
php8.3-common \
php8.3-cli \
php8.3-curl \
php8.3-dev \
php8.3-gd \
php8.3-intl \
php8.3-mysql \
php8.3-mbstring \
php8.3-xml \
php8.3-xsl \
php8.3-zip \
php8.3-xdebug \
php8.3-soap \
php8.3-bcmath \
zip \
default-mysql-client \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/doc \
/usr/share/doc-base
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\
&& php7.2 /usr/local/bin/composer self-update --2
COPY LICENSE README.md /
COPY scripts /opt/scripts
COPY config /opt/config
COPY entrypoint.sh /entrypoint.sh
RUN cd /opt/config/php-deployer/ && /usr/bin/php7.4 /usr/local/bin/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"]