File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 10
10
| 8.0 | 8.0 | ✅ Everything. |
11
11
| 8.1 | 8.1 | ✅ Everything. |
12
12
| 8.2 | 8.2 | ✅ Everything. |
13
- # php-nvm
You can’t perform that action at this time.
0 commit comments