Files
go/.devcontainer/Dockerfile

18 lines
929 B
Docker
Raw Normal View History

2021-09-07 20:39:09 +00:00
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.2/containers/go/.devcontainer/base.Dockerfile
2020-08-31 02:25:45 +00:00
ARG VARIANT="1"
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
2019-04-16 19:54:02 -07:00
2021-08-13 16:07:53 +00:00
# [Choice] Node.js version: lts/*, 16, 14, 12, 10
2020-08-31 02:25:45 +00:00
ARG NODE_VERSION="lts/*"
2021-08-13 16:07:53 +00:00
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c ". /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
2019-08-05 23:30:46 +00:00
2020-08-31 02:25:45 +00:00
# [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>
2020-07-25 01:38:41 +00:00
# [Optional] Uncomment the next line to use go get to install anything else you need
# RUN go get -x <your-dependency-or-tool>
2020-08-31 02:25:45 +00:00
# [Optional] Uncomment this line to install global node packages.
2021-03-08 18:11:47 -06:00
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1