ADDED devcontainer
This commit is contained in:
20
.devcontainer/Dockerfile
Normal file
20
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
FROM docker:20.10-dind
|
||||||
|
|
||||||
|
# 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
|
||||||
20
.devcontainer/devcontainer.json
Normal file
20
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// The Dev Container format allows you to configure your environment. At the heart of it
|
||||||
|
// is a Docker image or Dockerfile which controls the tools available in your environment.
|
||||||
|
//
|
||||||
|
// See https://aka.ms/devcontainer.json for more information.
|
||||||
|
{
|
||||||
|
"name": "Simple Id Server",
|
||||||
|
// Use "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
|
||||||
|
// instead of the build to use a pre-built image.
|
||||||
|
"build": {
|
||||||
|
"context": ".",
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
}
|
||||||
|
// 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": {
|
||||||
|
// "ghcr.io/devcontainers/features/docker-in-docker": {
|
||||||
|
// "moby": false
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user