Skip to content

Commit 28fb0ad

Browse files
committed
first commit
1 parent 4948fd5 commit 28fb0ad

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### JetBrains
2+
.idea

8.0/Dockerfile

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

8.1/Dockerfile

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

0 commit comments

Comments
 (0)