Skip to content

Commit 7d3f0b4

Browse files
committed
add php 8.2 support
1 parent 28fb0ad commit 7d3f0b4

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

8.2/Dockerfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM php:8.2
2+
3+
# Add docker-php-extension-installer script
4+
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
5+
6+
# Install dependencies
7+
RUN apt update -yqq \
8+
&& apt install \
9+
bash \
10+
curl \
11+
g++ \
12+
gcc \
13+
git \
14+
libc-dev \
15+
libzip-dev \
16+
make \
17+
openssh-client \
18+
rsync \
19+
-yqq
20+
21+
# Install php extensions
22+
RUN chmod +x /usr/local/bin/install-php-extensions && \
23+
install-php-extensions \
24+
@composer \
25+
redis-stable \
26+
imagick-stable \
27+
xdebug-stable \
28+
bcmath \
29+
calendar \
30+
exif \
31+
gd \
32+
intl \
33+
pdo_mysql \
34+
pdo_pgsql \
35+
pcntl \
36+
soap \
37+
zip
38+
39+
# Add local and global vendor bin to PATH.
40+
ENV PATH ./vendor/bin:/composer/vendor/bin:/root/.composer/vendor/bin:/usr/local/bin:$PATH
41+
42+
# Install NVM
43+
RUN touch ~/.bashrc
44+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
45+
RUN export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@
1010
| 8.0 | 8.0 | ✅ Everything. |
1111
| 8.1 | 8.1 | ✅ Everything. |
1212
| 8.2 | 8.2 | ✅ Everything. |
13-
# php-nvm

0 commit comments

Comments
 (0)