We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7d4609 commit 7e259bfCopy full SHA for 7e259bf
docker-compose.yml
@@ -15,7 +15,12 @@ services:
15
- wp_server
16
17
wp_server:
18
- build: ./docker-images/php/
+ build:
19
+ context: ./docker-images/php/
20
+ args:
21
+ PHP_VERSION: 7.1
22
+ # PHP_VERSION: 7.0
23
+ # PHP_VERSION: 5.6
24
user: ${UID}:www-data
25
container_name: wp_server
26
volumes:
docker-images/php/Dockerfile
@@ -1,4 +1,6 @@
1
-FROM php:7.1-fpm-alpine
+ARG PHP_VERSION
2
+
3
+FROM php:"$PHP_VERSION"-fpm-alpine
4
5
# docker-entrypoint.sh dependencies
6
RUN apk add --no-cache \
0 commit comments