-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (44 loc) · 1.22 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
FROM alpine:3.10
LABEL Description="Build & deploy Magento 2 with Deployer and Docker"
# trust this project public key to trust the packages.
ADD https://dl.bintray.com/php-alpine/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
# make sure you can use HTTPS
RUN apk --no-cache --update add \
ca-certificates \
git \
openssh-client \
npm \
patch \
rsync \
unzip \
php7 \
php7-bcmath \
php7-cli \
php7-ctype \
php7-curl \
php7-dom \
php7-gd \
php7-iconv \
php7-intl \
php7-json \
php7-mbstring \
php7-mysqlnd \
php7-openssl \
php7-pdo_mysql \
php7-phar \
php7-simplexml \
php7-session \
php7-soap \
php7-tokenizer \
php7-xml \
php7-xmlwriter \
php7-xsl \
php7-zip \
&& sed -i "s|;*memory_limit =.*|memory_limit = 512M|i" /etc/php7/php.ini
# Install tools
RUN npm install --global requirejs terser
RUN wget https://getcomposer.org/installer && php installer --install-dir=/usr/local/bin --filename=composer
RUN composer global require hirak/prestissimo
RUN wget https://deployer.org/deployer.phar && mv deployer.phar /usr/local/bin/dep && chmod +x /usr/local/bin/dep
# Cleanup
RUN rm -rf /root/.composer/cache