-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile-8.2-debug
More file actions
34 lines (26 loc) · 956 Bytes
/
Copy pathDockerfile-8.2-debug
File metadata and controls
34 lines (26 loc) · 956 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
# syntax=docker/dockerfile:1
# check=skip=SecretsUsedInArgOrEnv
FROM jakubboucek/lamp-devstack-php:8.2
LABEL org.label-schema.name="PHP 8.2 (Apache module + Xdebug)"
# Configure Xdebug
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# Setup PIE working directory
ARG PIE_WORKING_DIRECTORY=/tmp/.pie
# Prevent interactive block
ARG DEBIAN_FRONTEND=noninteractive
# Install Xdebug and SPX
RUN set -eux; \
apt-get update; \
apt-get install --no-install-recommends -y zlib1g-dev; \
pie install xdebug/xdebug; \
pie install noisebynorthwest/php-spx; \
apt-get remove --purge -y zlib1g-dev; \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/cache/* /var/lib/apt/lists/* /var/lib/log/* /tmp/* /var/tmp/* ~/.composer/cache/*;
# Configure OPcache
ENV PHP_SPX_ENABLED=0
ENV PHP_SPX_HTTP_KEY="dev"
ENV PHP_SPX_HTTP_IP_WHITELIST="*"
COPY spx.ini /usr/local/etc/php/conf.d/spx.ini