-
-
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
Showing
3 changed files
with
44 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,24 @@ | ||
# Use the official Microsoft .NET image. | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 | ||
|
||
# Set the working directory inside the container to /workspace. | ||
WORKDIR /workspace | ||
|
||
# Install system dependencies required for your project here. | ||
# Update the package lists and install ssh and procps (which provides ps). | ||
RUN apt-get update && apt-get install -y \ | ||
ssh \ | ||
procps \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the solution file | ||
COPY MasterCommander.sln . | ||
|
||
# Copy the entire src directory and restore as distinct layers | ||
COPY src/ ./src/ | ||
RUN for file in $(ls src/**/*.csproj); do dotnet restore $file; done | ||
|
||
# Optionally, copy other directories if needed, e.g., for tests or additional source files. | ||
|
||
# Set the working directory to where most of the work will be done | ||
WORKDIR /workspace/src |
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,19 @@ | ||
{ | ||
"name": "MasterCommander Dev Container", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": ".devcontainer/Dockerfile" | ||
}, | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "bash" | ||
}, | ||
"extensions": [ | ||
"ms-dotnettools.csharp" | ||
// Add other extensions relevant to your project here | ||
], | ||
"forwardPorts": [ | ||
// Add any ports your application uses | ||
], | ||
"postCreateCommand": "dotnet restore", | ||
"remoteUser": "root" | ||
} |
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