forked from do-aki/php-ext-perl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 786 Bytes
/
Dockerfile
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
FROM php:8-cli-buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && \
apt-get upgrade -y && \
apt install -y build-essential libperl-dev gdb wget && \
rm -rf /var/lib/apt/lists/*
# pecl always removes the source and there doesn't appear to be an option to
# disable that (PECL_Common destructor doesn't check config)
RUN docker-php-source extract
RUN mkdir /pecl
WORKDIR /pecl
RUN pecl download xdebug-3.0.4
RUN tar -xf xdebug-3.0.4.tgz
RUN mv /pecl/xdebug-3.0.4 /usr/src/php/ext/xdebug
RUN docker-php-ext-configure xdebug --enable-xdebug-dev
RUN docker-php-ext-install xdebug
WORKDIR /perl
RUN wget http://deb.debian.org/debian/pool/main/p/perl/perl_5.28.1.orig.tar.xz
RUN tar -xf perl_5.28.1.orig.tar.xz
WORKDIR /php-ext-perl
RUN useradd -u 1000 php
USER php