This repository was archived by the owner on Aug 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.3 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
FROM ubuntu:focal
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
unzip \
make \
mysql-client \
&& rm -rf /var/lib/apt/lists/* \
;
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
php-cli \
php-curl \
php-dom \
php-iconv \
php-intl \
php-json \
php-mbstring \
php-mysql \
php-sqlite3 \
php-xdebug \
php-xml \
php-zip \
&& rm -rf /var/lib/apt/lists/* \
;
WORKDIR /source
ARG COMPOSER_PHAR_VERSION=1.9.1
ARG COMPOSER_PHAR_CHECKSUM=1f210b9037fcf82670d75892dfc44400f13fe9ada7af9e787f93e50e3b764111
WORKDIR /root
# install composer
RUN php -r "copy('https://getcomposer.org/download/${COMPOSER_PHAR_VERSION}/composer.phar', 'composer.phar');" ; \
php -r "if (hash_file('sha256', 'composer.phar') === '${COMPOSER_PHAR_CHECKSUM}') { echo 'Installer verified', PHP_EOL; exit(0); } echo 'Installer corrupt', PHP_EOL; unlink('composer.phar'); exit(1);" ; \
chmod +x composer.phar ; \
mv composer.phar /usr/local/bin/composer
RUN echo 'error_reporting = E_ALL' > /etc/php/7.4/mods-available/error_reporting_all.ini ; \
phpenmod error_reporting_all
WORKDIR /source
ENV PATH="/source/vendor/bin:${PATH}"