Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdanishirfan committed May 10, 2024
1 parent e89a364 commit 4260c9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ ENV PATH="$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/pla
RUN mkdir -p $ANDROID_SDK_ROOT && \
cd $ANDROID_SDK_ROOT && \
curl -o sdk-tools-linux.zip "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_TOOLS_VERSION}_latest.zip" && \
unzip sdk-tools-linux.zip -d cmdline-tools\latest\bin && \
unzip sdk-tools-linux.zip && \
rm sdk-tools-linux.zip


# Print the contents of the bin directory
RUN ls -l $ANDROID_SDK_ROOT/cmdline-tools/latest/bin
RUN ls -l $ANDROID_SDK_ROOT/cmdline-tools/bin
# Set permissions and ensure sdkmanager is executable
RUN chmod +x $ANDROID_SDK_ROOT/cmdline-tools/bin/sdkmanager

# Accept Android SDK licenses
RUN yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses
RUN yes | $ANDROID_SDK_ROOT/cmdline-tools/bin/sdkmanager --licenses

# Print the contents of the bin directory
RUN ls -l $ANDROID_SDK_ROOT/cmdline-tools/bin
Expand Down

0 comments on commit 4260c9b

Please sign in to comment.