From 8e92f871e856fc2dfb14c4f8256fca3a6b3c2fb3 Mon Sep 17 00:00:00 2001 From: Leo Cavalcante Date: Fri, 22 Mar 2024 18:53:33 -0300 Subject: [PATCH] refactor(devcontainer): Using feature to install extensions --- src-devc/.devcontainer/devcontainer.json | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src-devc/.devcontainer/devcontainer.json b/src-devc/.devcontainer/devcontainer.json index 3a2386e..6a55192 100644 --- a/src-devc/.devcontainer/devcontainer.json +++ b/src-devc/.devcontainer/devcontainer.json @@ -1,17 +1,8 @@ { - "build": { - "dockerfile": "./Dockerfile", - "context": "../.." - }, + "image": "mcr.microsoft.com/devcontainers/php:8.3-bookworm", "features": { - "ghcr.io/devcontainers/features/common-utils:2": { - "installZsh": "true", - "username": "phpctl", - "userUid": "1000", - "userGid": "1000", - "upgradePackages": "true" - }, - "ghcr.io/devcontainers/features/github-cli:1": {} - }, - "remoteUser": "phpctl" + "ghcr.io/opencodeco/devcontainers/install-php-extensions:latest": { + "extensions": "swoole" + } + } }