From 0550b23beb1aef51b7c89e284194614ca41f9874 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 10 Jan 2026 09:44:35 +0000 Subject: [PATCH] =?UTF-8?q?opraven=C3=BD=20user=20a=20mount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 16 +++++++-------- .devcontainer/devcontainer.json | 36 +++++++++++++++++---------------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 904fccd..1e632aa 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,8 +1,8 @@ -# Základný oficiálny Rust image -FROM rust:1.92 - -# Inštalácia doplnkových nástrojov -RUN rustup component add rustfmt clippy - -# Vytvorenie pracovného adresára -WORKDIR /workspace +# Základný oficiálny Rust image +FROM rust:1.92 + +# Inštalácia doplnkových nástrojov +RUN rustup component add rustfmt clippy + +# Vytvorenie pracovného adresára +WORKDIR /workspace diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b55226b..b8d6e3b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,17 +1,19 @@ -{ - "name": "RustDev", - "build": { - "dockerfile": "Dockerfile" - }, - "workspaceFolder": "/workspace", - "customizations": { - "vscode": { - "extensions": [ - "rust-lang.rust-analyzer" - ], - "settings": { - "editor.formatOnSave": true - } - } - } -} +{ + "name": "RustDev", + "build": { + "dockerfile": "Dockerfile" + }, + "remoteUser": "root", + "workspaceFolder": "/workspace", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind", + "customizations": { + "vscode": { + "extensions": [ + "rust-lang.rust-analyzer" + ], + "settings": { + "editor.formatOnSave": true + } + } + } +} \ No newline at end of file