forked from MAD-I-T/magento-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (62 loc) · 1.45 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
FROM debian:stretch
RUN apt-get -y update \
&& apt-get -y install \
apt-transport-https \
ca-certificates \
wget
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 \
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
RUN curl -LO https://getcomposer.org/composer.phar \
&& chmod +x ./composer.phar \
&& mv ./composer.phar /usr/local/bin/composer
#CMD ["/bin/bash"]
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
ENTRYPOINT ["/entrypoint.sh"]