FIXED devcontainer
This commit is contained in:
@@ -1,20 +1,4 @@
|
||||
FROM docker:20.10-dind
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine
|
||||
|
||||
# Switch to Debian-based image for better .NET support
|
||||
RUN apk add --no-cache bash curl gnupg
|
||||
|
||||
# Install .NET 8 SDK
|
||||
ENV DOTNET_VERSION=8.0
|
||||
|
||||
RUN curl -sSL https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh -o dotnet-install.sh \
|
||||
&& chmod +x dotnet-install.sh \
|
||||
&& ./dotnet-install.sh --version $DOTNET_VERSION --install-dir /usr/share/dotnet \
|
||||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
|
||||
|
||||
# Verify installation
|
||||
RUN dotnet --version
|
||||
|
||||
# Optional: install other tools
|
||||
RUN apk add --no-cache git make vim go
|
||||
|
||||
USER root
|
||||
# Optional: install Docker CLI (not Docker daemon)
|
||||
RUN apk add --no-cache docker-cli bash git
|
||||
|
||||
@@ -9,7 +9,14 @@
|
||||
"build": {
|
||||
"context": ".",
|
||||
"dockerfile": "Dockerfile"
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--privileged"
|
||||
],
|
||||
"mounts": [
|
||||
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
|
||||
],
|
||||
"remoteUser": "root"
|
||||
// Features add additional features to your environment. See https://containers.dev/features
|
||||
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
||||
// "features": {
|
||||
|
||||
Reference in New Issue
Block a user