-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathDockerfile.test
More file actions
23 lines (18 loc) · 835 Bytes
/
Dockerfile.test
File metadata and controls
23 lines (18 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:8.3-cli
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
gcc \
git \
libonig-dev \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysqli pdo_mysql mbstring
RUN php -r "copy('https://composer.github.io/installer.sig', 'composer.sig');" \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (trim(file_get_contents('composer.sig')) !== hash_file('sha384', 'composer-setup.php')) { fwrite(STDERR, 'Invalid Composer installer checksum'.PHP_EOL); exit(1); }" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php'); unlink('composer.sig');"
WORKDIR /work
ENV COMPOSER_ALLOW_SUPERUSER=1