Dockerfile 927 B

1234567891011121314151617
  1. FROM mcr.microsoft.com/devcontainers/java:1-${templateOption:imageVariant}
  2. ARG INSTALL_MAVEN="${templateOption:installMaven}"
  3. ARG MAVEN_VERSION=""
  4. ARG INSTALL_GRADLE="${templateOption:installGradle}"
  5. ARG GRADLE_VERSION=""
  6. RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
  7. && if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
  8. # [Optional] Uncomment this section to install additional OS packages.
  9. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
  10. # && apt-get -y install --no-install-recommends <your-package-list-here>
  11. # [Optional] Uncomment this line to install global node packages.
  12. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1