-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.18 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
FROM php:7.2-cli
LABEL maintainer="[email protected]"
# zip
RUN apt-get update && apt-get install -y zlib1g-dev \
&& docker-php-ext-install zip \
&& rm -r /var/lib/apt/lists/*
# icu
RUN curl -sS -o /tmp/icu.tar.gz -L http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz \
&& tar -zxf /tmp/icu.tar.gz -C /tmp \
&& cd /tmp/icu/source \
&& ./configure --prefix=/usr/local \
&& make \
&& make install
# intl
RUN docker-php-ext-configure intl --with-icu-dir=/usr/local \
&& docker-php-ext-install intl
RUN apt-get update && apt-get install -y git gnupg unzip && rm -r /var/lib/apt/lists/*
# Composer
RUN cd /usr/local/bin \
&& php -r "readfile('https://getcomposer.org/installer');" | php \
&& mv composer.phar composer
# Node
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs \
&& rm -r /var/lib/apt/lists/*
# Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install -y yarn \
&& rm -r /var/lib/apt/lists/*