Skip to content

Commit 2d3e43c

Browse files
committed
Fix Build with PHP 8.4
1 parent 36827f7 commit 2d3e43c

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
FROM php:cli-alpine
22

3-
# PHP dependencies, create users
3+
# PHP ext dependencies
44
RUN apk add --update --no-cache linux-headers curl-dev libcap imap-dev openssl-dev \
55
&& docker-php-ext-install sockets \
6-
&& docker-php-ext-install curl \
7-
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-imap --with-imap-ssl \
8-
&& docker-php-ext-install imap \
9-
&& setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php \
6+
&& docker-php-ext-install curl
7+
8+
# PHP pecl dependencies
9+
RUN apk add --update --no-cache $PHPIZE_DEPS krb5-dev \
10+
&& pecl install imap \
11+
&& docker-php-ext-enable imap
12+
13+
# create users and configure
14+
RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php \
1015
&& addgroup -S php && adduser -S php -G php \
1116
&& mkdir -p /home/php/telegram/ \
1217
&& mkdir /home/php/telegram/log

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ The `docker-compose.yml` to setup the Docker Image.
7979

8080
```yaml
8181

82-
version: '2'
83-
8482
services:
8583
telebot:
8684
image: kimbtechnologies/telegrambot:latest

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
1
22
1.0
3-
1.0.5
3+
1.0.6

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '2'
21

32
services:
43
telebot:

0 commit comments

Comments
 (0)