opravený user a mount

This commit is contained in:
2026-01-10 09:44:35 +00:00
parent 71b2a5e3cc
commit 0550b23beb
2 changed files with 27 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
# Základný oficiálny Rust image # Základný oficiálny Rust image
FROM rust:1.92 FROM rust:1.92
# Inštalácia doplnkových nástrojov # Inštalácia doplnkových nástrojov
RUN rustup component add rustfmt clippy RUN rustup component add rustfmt clippy
# Vytvorenie pracovného adresára # Vytvorenie pracovného adresára
WORKDIR /workspace WORKDIR /workspace

View File

@@ -1,17 +1,19 @@
{ {
"name": "RustDev", "name": "RustDev",
"build": { "build": {
"dockerfile": "Dockerfile" "dockerfile": "Dockerfile"
}, },
"workspaceFolder": "/workspace", "remoteUser": "root",
"customizations": { "workspaceFolder": "/workspace",
"vscode": { "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind",
"extensions": [ "customizations": {
"rust-lang.rust-analyzer" "vscode": {
], "extensions": [
"settings": { "rust-lang.rust-analyzer"
"editor.formatOnSave": true ],
} "settings": {
} "editor.formatOnSave": true
} }
} }
}
}