Skip to content

Commit cd93825

Browse files
Add php 8.3 container
1 parent 9d00a7d commit cd93825

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.docker/php8.3/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:8.3.0RC2-alpine
2+
3+
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
4+
RUN install-php-extensions zip
5+
6+
RUN apk add ncurses \
7+
&& apk add gnupg \
8+
&& apk add bash
9+
10+
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
11+
ENV COMPOSER_ALLOW_SUPERUSER 1
12+
13+
WORKDIR /docker
14+
# Workaround to keep container running
15+
CMD ["tail", "-f", "/dev/null"]

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ services:
3535
volumes:
3636
- .:/docker:rw
3737
tty: true
38+
39+
php8.3:
40+
build: .docker/php8.3
41+
container_name: captainhook-php8.3
42+
volumes:
43+
- .:/docker:rw
44+
tty: true

0 commit comments

Comments
 (0)