-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 617 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG VERSION=
FROM php:${VERSION}-cli
# hadolint ignore=DL3027
RUN --mount=type=cache,target=/var/cache/apt \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update -yq; \
apt-get install -yq unzip; \
pecl install pcov; \
docker-php-ext-enable pcov;
RUN echo 'memory_limit=512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Configure www-data user
ARG UID=1000
ARG GID=1000
RUN usermod --uid $UID www-data && groupmod --gid $GID www-data && chown www-data:www-data /var/www
USER www-data
WORKDIR /var/www/html