-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp.dev.Dockerfile
37 lines (32 loc) · 1.14 KB
/
php.dev.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
29
30
31
32
33
34
35
36
37
FROM php:7.4.29-fpm-alpine3.15
COPY --from=mlocati/php-extension-installer:1.5.14 /usr/bin/install-php-extensions /usr/local/bin/
RUN set -eux; \
rm /usr/local/etc/php-fpm.conf \
/usr/local/etc/php-fpm.conf.default \
/usr/local/etc/php/php.ini-development \
/usr/local/etc/php/php.ini-production \
; \
rm -rf /usr/local/etc/php-fpm.d
RUN set -eux; \
export \
XDEBUG_VERSION=3.1.4 \
COMPOSER_VERSION=2.3.5 \
; \
install-php-extensions \
xdebug-${XDEBUG_VERSION} \
intl \
@composer-${COMPOSER_VERSION} \
;
COPY ./deploy/data/php/root/ /
RUN set -eux; \
export PACKAGE_VERSION="1.0.1"; \
export \
PACKAGE_URL="https://github.com/BETER-CO/php-exception-with-context/archive/refs/tags/${PACKAGE_VERSION}.tar.gz" \
PACKAGE_ARCH_NAME="php-exception-with-context.tar.gz" \
PACKAGE_ARCH_DIR="php-exception-with-context-${PACKAGE_VERSION}" \
; \
curl -fsSL -o "/${PACKAGE_ARCH_NAME}" "${PACKAGE_URL}"; \
tar -xzf "/${PACKAGE_ARCH_NAME}" -C /tmp/; \
rm "/${PACKAGE_ARCH_NAME}"; \
mv /tmp/${PACKAGE_ARCH_DIR} /package-src; \
composer update