-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (34 loc) · 1.56 KB
/
Dockerfile
File metadata and controls
48 lines (34 loc) · 1.56 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
FROM php:7.2-cli
WORKDIR "/application"
RUN apt-get update \
&& apt-get install -y libicu-dev \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
&& docker-php-ext-install intl
RUN apt-get update \
&& apt-get install -y libicu-dev libpng-dev libjpeg-dev libpq-dev \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install intl gd mbstring
RUN apt-get update \
&& apt-get -y install unzip zlib1g-dev \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
&& docker-php-ext-install zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN curl -sS https://phar.phpunit.de/phpunit-6.5.phar -o /usr/local/bin/phpunit
# Fix permission problems
RUN usermod -u 1000 www-data
RUN echo 'alias ll="ls -l"' >> ~/.bashrc
RUN echo 'alias sf="php bin/console"' >> ~/.bashrc
COPY ./sh/docker-entrypoint.sh /usr/local/bin/
COPY ./sh/test-symfony2.sh /usr/local/bin/
COPY ./sh/test-symfony3.sh /usr/local/bin/
COPY ./sh/test-symfony4.sh /usr/local/bin/
COPY ./sh/test-laravel.sh /usr/local/bin/
COPY ./sh/test-vendor.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENV TEST_RUNNER_FRAMEWORK S4
ENV TEST_RUNNER_COVERAGE false
ENV TEST_RUNNER_COVERAGE_HTML false
WORKDIR /application
ENTRYPOINT ["docker-entrypoint.sh"]