From 1230bda4fe5b877b421ca49e1da6fda24a1e87cf Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Sun, 28 Jun 2026 14:57:33 +0000 Subject: [PATCH] updated devcontainer --- .devcontainer/devcontainer.json | 10 +++------- docker/init.sh | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7643ca6..048cc39 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,12 +1,8 @@ { "name": "Fotobox", - "build": { - "dockerfile": "../Dockerfile", - "context": ".." - }, - "workspaceFolder": "/workspace/fotobox", - "workspaceMount": "source=${localWorkspaceFolder},target=/workspace/fotobox,type=bind", - "postCreateCommand": "sh docker/init.sh", + "image": "mcr.microsoft.com/devcontainers/base:trixie", + + "postCreateCommand": "sudo sh docker/init.sh", "forwardPorts": [8000], "portsAttributes": { "8000": { diff --git a/docker/init.sh b/docker/init.sh index b711a8b..183bd3c 100755 --- a/docker/init.sh +++ b/docker/init.sh @@ -13,7 +13,7 @@ ${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyri ${SUDO} apt-get update apt-get update -apt-get -y install php8.5 php8.5-cli php8.5-zip php8.5-sqlite3 php8.5-xml php8.5-pgsql php8.5-bcmath php8.5-intl php8.5-mbstring sqlite3 +apt-get -y install php8.5 php8.5-cli php8.5-zip php8.5-sqlite3 php8.5-xml php8.5-pgsql php8.5-bcmath php8.5-intl php8.5-mbstring sqlite3 composer npm curl -fsSL -o gmic.deb "https://gmic.eu/get_file.php?file=linux/gmic_3.7.6_debian13_trixie_amd64.deb" apt-get -y install ./gmic.deb rm gmic.deb