Skip to content

Commit

Permalink
Soft links python -> python2 for ndk.sh
Browse files Browse the repository at this point in the history
This fixes #2.
  • Loading branch information
rhardih committed Apr 30, 2023
1 parent 8b7f05a commit 3af5f4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ RUN apt update && apt -y install \

COPY ndk.sh .

# ndk.sh relies on Python 2 being the default `python`, but in later versions of
# Ubuntu, you're meant to target either `python2` or `python3` directly.
# Additionally the meta package for `python` now points to `python3` by default,
# so this workaround is necessary.
#
# Reference:
# - https://github.com/rhardih/stand/issues/3
RUN ln -s /usr/bin/python2 /usr/bin/python

# Download and unzip NDK
RUN ./ndk.sh

Expand Down

0 comments on commit 3af5f4b

Please sign in to comment.