2021-07-01 02:26:07 +00:00
|
|
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.185.0/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
|
|
|
|
2020-08-31 02:25:45 +00:00
|
|
|
# [Optional] Install a version of Node.js using nvm for front end dev
|
|
|
|
|
ARG INSTALL_NODE="true"
|
|
|
|
|
ARG NODE_VERSION="lts/*"
|
|
|
|
|
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /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>
|
2019-09-13 21:27:00 +02:00
|
|
|
|
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
|