Skip to content

Commit 4e05dd7

Browse files
committed
Update Docker dev env
1 parent bb78dbf commit 4e05dd7

3 files changed

Lines changed: 70 additions & 0 deletions

File tree

.docker/php84.Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ----------------------
2+
# The FPM base container
3+
# ----------------------
4+
FROM php:8.4-cli-alpine AS dev
5+
6+
RUN apk add --no-cache --virtual .build-deps \
7+
$PHPIZE_DEPS
8+
9+
# Cleanup apk cache and temp files
10+
RUN rm -rf /var/cache/apk/* /tmp/*
11+
12+
# ----------------------
13+
# Composer install step
14+
# ----------------------
15+
16+
# Get latest Composer
17+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
18+
19+
# ----------------------
20+
# The FPM production container
21+
# ----------------------
22+
FROM dev

.docker/php85.Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ----------------------
2+
# The FPM base container
3+
# ----------------------
4+
FROM php:8.5-cli-alpine AS dev
5+
6+
RUN apk add --no-cache --virtual .build-deps \
7+
$PHPIZE_DEPS
8+
9+
# Cleanup apk cache and temp files
10+
RUN rm -rf /var/cache/apk/* /tmp/*
11+
12+
# ----------------------
13+
# Composer install step
14+
# ----------------------
15+
16+
# Get latest Composer
17+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
18+
19+
# ----------------------
20+
# The FPM production container
21+
# ----------------------
22+
FROM dev

compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,32 @@ services:
5151
networks:
5252
- php-opentsdb-client-lib
5353

54+
php84:
55+
container_name: php-opentsdb-client-lib-php-84
56+
image: php-opentsdb-client-lib-84
57+
build:
58+
context: ./
59+
dockerfile: ./.docker/php84.Dockerfile
60+
tty: true
61+
working_dir: /app
62+
volumes:
63+
- ./:/app
64+
networks:
65+
- php-opentsdb-client-lib
66+
67+
php85:
68+
container_name: php-opentsdb-client-lib-php-85
69+
image: php-opentsdb-client-lib-85
70+
build:
71+
context: ./
72+
dockerfile: ./.docker/php85.Dockerfile
73+
tty: true
74+
working_dir: /app
75+
volumes:
76+
- ./:/app
77+
networks:
78+
- php-opentsdb-client-lib
79+
5480
opentsdb:
5581
container_name: php-opentsdb-client-lib-opentsdb
5682
image: petergrace/opentsdb-docker:latest

0 commit comments

Comments
 (0)