-
Notifications
You must be signed in to change notification settings - Fork 391
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (12 loc) · 930 Bytes
/
Copy pathDockerfile
File metadata and controls
17 lines (12 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM mcr.microsoft.com/devcontainers/java:3-${templateOption:imageVariant}
ARG INSTALL_MAVEN="${templateOption:installMaven}"
ARG MAVEN_VERSION=""
ARG INSTALL_GRADLE="${templateOption:installGradle}"
ARG GRADLE_VERSION=""
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; 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 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