// For format details, see https://aka.m	s/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/php
{
	"name": "PHP",
	"image": "mcr.microsoft.com/devcontainers/php:7.4-bullseye",
	"features": {
		"ghcr.io/devcontainers/features/git:1": {}
	},
	// Configure tool-specific properties.
	"customizations": {
		// Configure properties specific to VS Code.
		"vscode": {
			"settings": {},
			"extensions": [
				"GitHub.copilot",
				"xdebug.php-debug"
			]
		}
	},
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	"forwardPorts": [
		8000
	],
	"postCreateCommand": "sudo chmod a+x \"$(pwd)\" && sudo rm -rf /var/www/html && sudo ln -s \"$(pwd)\" /var/www/html",
	"portsAttributes": {
		"8000": {
			"label": "PHP Artisan Serve",
			"onAutoForward": "notify"
		}
	}
}