|
@@ -1,24 +1,25 @@
|
|
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/java-8/.devcontainer/base.Dockerfile
|
|
|
|
|
|
-# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
|
|
|
-FROM mcr.microsoft.com/azure-functions/java:4-java11-core-tools
|
|
|
+# [Choice] Java version: 11, 16
|
|
|
+ARG VARIANT="16"
|
|
|
+FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT}
|
|
|
|
|
|
# [Option] Install Maven
|
|
|
ARG INSTALL_MAVEN="false"
|
|
|
ARG MAVEN_VERSION=""
|
|
|
# [Option] Install Gradle
|
|
|
ARG INSTALL_GRADLE="false"
|
|
|
-ARG GRADLE_VERSION=""
|
|
|
+ARG GRADLE_VERSION="7.2.2"
|
|
|
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
|
|
|
|
|
|
USER vscode
|
|
|
WORKDIR /home/vscode
|
|
|
-ARG FLUTTER_VERSION="3.0.5"
|
|
|
+ARG FLUTTER_VERSION="3.7.7"
|
|
|
ENV ANDROID_HOME=/home/vscode/androidsdk \
|
|
|
FLUTTER_HOME=/home/vscode/flutter
|
|
|
|
|
|
-RUN wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip \
|
|
|
+RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip \
|
|
|
&& mkdir -p $ANDROID_HOME/cmdline-tools/latest \
|
|
|
&& unzip commandlinetools-linux-*.zip -d $ANDROID_HOME \
|
|
|
&& rm -f commandlinetools-linux-*.zip \
|
|
@@ -30,7 +31,7 @@ RUN echo "export ANDROID_HOME=$ANDROID_HOME" >> /home/vscode/.bashrc \
|
|
|
|
|
|
ENV PATH=$PATH:$FLUTTER_HOME/bin
|
|
|
# Install Android Image version 30
|
|
|
-RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-30"
|
|
|
+RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-33"
|
|
|
# RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;google_apis;x86_64"
|
|
|
# RUN echo no | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n avd28 -k "system-images;android-30;google_apis;x86_64"
|
|
|
|