forked from akeneo/pim-community-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
82 lines (75 loc) · 3.27 KB
/
Copy pathDockerfile
File metadata and controls
82 lines (75 loc) · 3.27 KB
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
FROM php:7.1.16-fpm
ARG COMPOSER_COMMAND=update
ENV COMPOSER_CACHE_DIR=/tmp/composer/cache
ENV YARN_CACHE_FOLDER=/tmp/yarn
ENV PIM_DATABASE_HOST=127.0.0.1
ENV PIM_INDEX_HOSTS=elastic:changeme@127.0.0.1:9200
ENV BEHAT_TMPDIR=/var/www/pim/var/cache/tmp
WORKDIR /var/www/pim
RUN apt-get update && apt-get install -y apt-transport-https \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& curl -sS https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://deb.nodesource.com/node_8.x jessie main" > /etc/apt/sources.list.d/nodesource.list \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y --no-install-recommends \
apache2 \
git \
imagemagick \
libcurl4-openssl-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmagickwand-dev \
libmcrypt-dev \
libpng-dev \
libxml2-dev \
netcat \
nodejs \
perceptualdiff \
yarn \
zlib1g-dev \
zlib1g-dev \
mysql-client \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) \
bcmath \
exif \
gd \
intl \
mbstring \
mcrypt \
opcache \
pdo_mysql \
soap \
xml \
zip \
&& pecl install apcu && docker-php-ext-enable apcu \
&& pecl install imagick && docker-php-ext-enable imagick \
&& rm -rf /tmp/pear \
&& a2enmod rewrite \
&& a2enmod proxy \
&& a2enmod proxy_fcgi \
## Pupeter & Cucumber JS
&& apt-get install -yq libgconf-2-4 \
&& apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont --no-install-recommends \
&& apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
COPY --from=gcr.io/akeneo-ci/github-akeneo-ci-dependencies-warmer:master /tmp /tmp
COPY . .
COPY .ci/php.ini /usr/local/etc/php/
COPY .ci/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN composer $COMPOSER_COMMAND --no-ansi --optimize-autoloader --no-interaction --no-progress --prefer-dist --no-suggest \
&& bin/console pim:installer:assets --env=prod \
&& bin/console pim:installer:dump-require-paths --env=prod \
&& yarn install \
&& yarn run webpack \
&& cp app/config/parameters.yml app/config/parameters_test.yml \
&& chown -R www-data:www-data var web \
&& chmod 777 -R tests/legacy/features/Context/fixtures/ var web