File tree Expand file tree Collapse file tree 6 files changed +72
-151
lines changed Expand file tree Collapse file tree 6 files changed +72
-151
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# ----------------------
2
2
# The FPM base container
3
3
# ----------------------
4
- FROM php:8.1-fpm-alpine AS dev
4
+ FROM php:8.1-cli-alpine AS dev
5
+
6
+ RUN apk add --no-cache --virtual .build-deps \
7
+ $PHPIZE_DEPS
5
8
6
9
# Cleanup apk cache and temp files
7
10
RUN rm -rf /var/cache/apk/* /tmp/*
Original file line number Diff line number Diff line change
1
+ # ----------------------
2
+ # The FPM base container
3
+ # ----------------------
4
+ FROM php:8.2-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
Original file line number Diff line number Diff line change
1
+ # ----------------------
2
+ # The FPM base container
3
+ # ----------------------
4
+ FROM php:8.3-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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
version : " 3.9"
2
2
services :
3
- app :
4
- container_name : laravel-ban-app
5
- image : laravel-ban-app
3
+ php81 :
4
+ container_name : laravel-ban-lib-81
5
+ image : laravel-ban-lib-81
6
6
build :
7
7
context : ./
8
- dockerfile : ./.docker/php/Dockerfile
9
- restart : unless-stopped
8
+ dockerfile : ./.docker/php/php81/ Dockerfile
9
+ tty : true
10
10
working_dir : /app
11
11
volumes :
12
12
- ./:/app
13
- - ./.docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf:ro
14
- networks :
15
- - laravel-ban
16
13
17
- nginx :
18
- container_name : laravel-ban-nginx
19
- image : nginx:1.21-alpine
20
- restart : unless-stopped
21
- depends_on :
22
- - app
23
- ports :
24
- - " 80:80"
25
- environment :
26
- VIRTUAL_HOST : app.laravel-ban.localhost
14
+ php82 :
15
+ container_name : laravel-ban-lib-82
16
+ image : laravel-ban-lib-82
17
+ build :
18
+ context : ./
19
+ dockerfile : ./.docker/php/php82/Dockerfile
20
+ tty : true
21
+ working_dir : /app
27
22
volumes :
28
- - ./.docker/nginx/app.laravel-ban.80.conf:/etc/nginx/conf.d/app.laravel-ban.80.conf:ro
29
- - ./public:/app/public:ro
30
- networks :
31
- - laravel-ban
23
+ - ./:/app
32
24
33
- networks :
34
- laravel-ban :
35
- driver : bridge
25
+ php83 :
26
+ container_name : laravel-ban-lib-83
27
+ image : laravel-ban-lib-83
28
+ build :
29
+ context : ./
30
+ dockerfile : ./.docker/php/php83/Dockerfile
31
+ tty : true
32
+ working_dir : /app
33
+ volumes :
34
+ - ./:/app
You can’t perform that action at this time.
0 commit comments