20 lines
848 B
Docker
20 lines
848 B
Docker
# [Choice] Go version: 1, 1.15, 1.14
|
|
ARG VARIANT=1
|
|
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
|
|
ENV DEVELOPMENT=True
|
|
|
|
# [Option] Install Node.js
|
|
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
|
|
|
|
# [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 the next line to use go get to install anything else you need
|
|
# RUN go get -x <your-dependency-or-tool>
|
|
|
|
# [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
|