diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-04-18 14:06:43 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-04-18 14:19:36 -0500 |
commit | 6ca8d7c04d263c4f5240050c4eb69bbc0da6f45a (patch) | |
tree | ef8b8bc8927e27a43b08cdda647f3725ed01919b /.devcontainer/Dockerfile |
intial commit
Diffstat (limited to '.devcontainer/Dockerfile')
-rw-r--r-- | .devcontainer/Dockerfile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..10ed73b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,28 @@ +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.163.1/containers/dotnet/.devcontainer/base.Dockerfile + +# [Choice] .NET version: 5.0, 3.1, 2.1 +ARG VARIANT="5.0" +FROM mcr.microsoft.com/vscode/devcontainers/dotnetcore:0-${VARIANT} + +# [Option] Install Node.js +ARG INSTALL_NODE="true" +ARG NODE_VERSION="lts/*" +RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi + +# [Option] Install Azure CLI +ARG INSTALL_AZURE_CLI="false" +COPY library-scripts/azcli-debian.sh /tmp/library-scripts/ +RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-debian.sh; fi \ + && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts + +# [Option] Preserve command history +ARG USERNAME=vscode +ARG HISTFILE=/commandhistory/.zsh_history +RUN mkdir /commandhistory && touch /commandhistory/.zsh_history && chown -R $USERNAME /commandhistory + +# [Optional] Uncomment this section to install additional OS packages. +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends <your-package-list-here> + +# [Optional] Uncomment this line to install global node packages. +# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
\ No newline at end of file |