Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Last active August 29, 2015 14:25
Show Gist options
  • Save tshirtman/8fdb8928b09048178eb2 to your computer and use it in GitHub Desktop.
Save tshirtman/8fdb8928b09048178eb2 to your computer and use it in GitHub Desktop.
FROM ubuntu
# usage
# create the image:
# docker build -t buildozer .
#
# use the built image:
# docker run --rm -v /path/to/project:/home/build/build -w /home/build/build buildozer
#
# you can use $PWD as /path/to/project if you are in the project dir
# the result apk will be in project/path/bin
RUN apt-get update && apt-get install -y curl wget
RUN curl -SL https://raw.githubusercontent.com/brousch/kivy-installer/master/ubuntu/1404/python27/buildozer_only.sh > buildozer_only.sh \
&& sh buildozer_only.sh \
&& pip install markupsafe
RUN adduser --disabled-password --quiet build
USER build
ENV HOME /home/build/
WORKDIR /home/build/
RUN mkdir tmp\
&& cd tmp\
&& echo '__version__ = "1.0"' >> main.py \
&& buildozer init\
&& buildozer android debug\
&& cd ..\
&& rm -rf tmp
ENTRYPOINT ["buildozer", "android"]
CMD ["debug"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment