blob: ed14f03f9ddf8bea293caec3f7b07bc548211f07 [file] [log] [blame]
Nico Huberee52fbc2023-06-24 11:52:57 +00001// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2// README at: https://github.com/devcontainers/templates/tree/main/src/php
3{
4 "name": "PHP",
5 // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6 "image": "mcr.microsoft.com/devcontainers/php:7.4",
7
8 // Features to add to the dev container. More info: https://containers.dev/features.
9 // "features": {},
10
11 // Configure tool-specific properties.
12 // "customizations": {},
13
14 // Use 'forwardPorts' to make a list of ports inside the container available locally.
15 //"forwardPorts": [8080]
16
17 // Use 'postCreateCommand' to run commands after the container is created.
18 // "postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html"
19 "postCreateCommand": "sudo curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && sudo chmod +x /usr/local/bin/install-php-extensions && sudo PHP_INI_DIR=/usr/local/etc/php install-php-extensions bcmath"
20
21
22 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
23 // "remoteUser": "root"
24}