Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic
WORKDIR /home/
COPY . .
RUN bash ./setup.sh
## Update and install some things we should probably have
apt-get update
apt-get install -y \
curl \
git \
gnupg2 \
jq \
sudo \
zsh
## Instsall nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
## Install PowerShell Core
curl -sSL https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh | bash
## Setup and install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cp -R /root/.oh-my-zsh /home/$USERNAME
cp /root/.zshrc /home/$USERNAME
sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc
{
...
"extensions": [
"coenraads.bracket-pair-colorizer-2",
"docsmsft.docs-authoring-pack",
"donjayamanne.githistory",
"eamodio.gitlens",
"editorconfig.editorconfig",
"github.vscode-pull-request-github",
"jongrant.csharpsortusings",
"k--kato.docomment",
"kreativ-software.csharpextensions",
"mhutchie.git-graph",
"ms-dotnettools.csharp",
"ms-vscode.powershell",
"ms-vscode.vscode-node-azure-pack",
"ms-vsliveshare.vsliveshare",
"vscode-icons-team.vscode-icons",
"visualstudioexptteam.vscodeintellicode",
"yzhang.markdown-all-in-one"
],
...
}
dotnet new console -n Sample.ConsoleApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.