-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
35 lines (28 loc) · 899 Bytes
/
Dockerfile.alpine
File metadata and controls
35 lines (28 loc) · 899 Bytes
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
ARG PHP_VERSION=7.2
FROM php:${PHP_VERSION}-fpm-alpine
RUN apk update \
&& apk add \
bash \
logrotate \
procps \
rsyslog \
util-linux \
curl \
git \
unzip
RUN MODULES="mysqli pcntl pdo_mysql"; \
case "${PHP_VERSION}" in \
8.5*) ;; \
*) MODULES="$MODULES opcache" ;; \
esac; \
docker-php-ext-install $MODULES
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /app/agent/native/ext
ENV REPORT_EXIT_STATUS=1
ENV TEST_PHP_DETAILED=1
ENV NO_INTERACTION=1
ENV TEST_PHP_JUNIT=/app/build/junit.xml
# Disable agent for auxiliary PHP processes to reduce noise in logs
ENV ELASTIC_APM_ENABLED=false
# Create a link to extensions directory to make it easier accessible (paths are different between php releases)
RUN ln -s `find /usr/local/lib/php/extensions/ -name opcache.so | head -n1 | xargs dirname` /tmp/extensions