This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
forked from github/dotnet-codespaces
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bfcd725
Showing
43 changed files
with
3,914 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG VARIANT=bullseye | ||
ARG VERSION=3.10 | ||
FROM --platform=amd64 mcr.microsoft.com/devcontainers/python:${VERSION}-${VARIANT} | ||
|
||
# Copy the setup scripts | ||
COPY library-scripts/*.sh /tmp/library-scripts/ | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y xdg-utils \ | ||
&& curl -fsSL https://aka.ms/install-azd.sh | bash \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": ".NET in Codespaces", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"IMAGE": "dotnet:8.0-preview" | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-from-docker:1": { | ||
"version": "20.10" | ||
}, | ||
"ghcr.io/devcontainers/features/github-cli:1": { | ||
"version": "2" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.vscode-node-azure-pack", | ||
"github.vscode-github-actions", | ||
"GitHub.copilot-nightly", | ||
"GitHub.vscode-github-actions", | ||
"ms-dotnettools.vscode-dotnet-runtime", | ||
"ms-dotnetools.csharp", | ||
"ms-dotnettools.csdevkit" | ||
] | ||
} | ||
}, | ||
"forwardPorts": [ | ||
8080, | ||
8081 | ||
], | ||
"onCreateCommand": "bash ${containerWorkspaceFolder}/.devcontainer/library-scripts/dotnet-install.sh --channel 8.0 -quality preview -installdir ${containerWorkspaceFolder}/.dotnet", | ||
"postCreateCommand": "dotnet restore", | ||
"remoteUser": "vscode", | ||
"hostRequirements": { | ||
"memory": "8gb", | ||
"cpus": 4 | ||
}, | ||
"remoteEnv": { | ||
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}", | ||
"DOTNET_MULTILEVEL_LOOKUP": "0", | ||
"TARGET": "net8.0" | ||
}, | ||
"portsAttributes": { | ||
"8080": { | ||
"label": "Weather API" | ||
}, | ||
"8081": { | ||
"label": "Weather Front End" | ||
} | ||
} | ||
} |
Oops, something went wrong.