Skip to content

Commit 77c7591

Browse files
committed
Add PHP 8.1
1 parent 9a7652a commit 77c7591

File tree

3 files changed

+59
-6
lines changed

3 files changed

+59
-6
lines changed

.github/workflows/dockerimage.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: '**'
6-
tags: '**'
5+
branches: "**"
6+
tags: "**"
77
schedule:
8-
- cron: 0 0 * * 6
8+
- cron: 0 0 * * 6
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
15+
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v2
@@ -21,8 +21,7 @@ jobs:
2121
id: meta
2222
uses: crazy-max/ghaction-docker-meta@v2
2323
with:
24-
images:
25-
laradock/php-fpm
24+
images: laradock/php-fpm
2625
flavor: |
2726
suffix=-${{ matrix.php_version }}
2827
tags: |

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
- PHP_VERSION=7.3
1313
- PHP_VERSION=7.4
1414
- PHP_VERSION=8.0
15+
- PHP_VERSION=8.1
1516

1617
# Installing a newer Docker version
1718
before_install:

Dockerfile-8.1

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#
2+
#--------------------------------------------------------------------------
3+
# Image Setup
4+
#--------------------------------------------------------------------------
5+
#
6+
7+
FROM php:8.1-fpm
8+
9+
# Set Environment Variables
10+
ENV DEBIAN_FRONTEND noninteractive
11+
12+
#
13+
#--------------------------------------------------------------------------
14+
# Software's Installation
15+
#--------------------------------------------------------------------------
16+
#
17+
# Installing tools and PHP extentions using "apt", "docker-php", "pecl",
18+
#
19+
20+
# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev",
21+
# "libpng-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev",
22+
RUN set -eux; \
23+
apt-get update; \
24+
apt-get upgrade -y; \
25+
apt-get install -y --no-install-recommends \
26+
curl \
27+
libmemcached-dev \
28+
libz-dev \
29+
libpq-dev \
30+
libjpeg-dev \
31+
libpng-dev \
32+
libfreetype6-dev \
33+
libssl-dev \
34+
libwebp-dev \
35+
libxpm-dev \
36+
libmcrypt-dev \
37+
libonig-dev; \
38+
rm -rf /var/lib/apt/lists/*
39+
40+
RUN set -eux; \
41+
# Install the PHP pdo_mysql extention
42+
docker-php-ext-install pdo_mysql; \
43+
# Install the PHP pdo_pgsql extention
44+
docker-php-ext-install pdo_pgsql; \
45+
# Install the PHP gd library
46+
docker-php-ext-configure gd \
47+
--prefix=/usr \
48+
--with-jpeg \
49+
--with-webp \
50+
--with-xpm \
51+
--with-freetype; \
52+
docker-php-ext-install gd; \
53+
php -r 'var_dump(gd_info());'

0 commit comments

Comments
 (0)