An open API service indexing awesome lists of open source software.

https://github.com/thenets/docker-android

Docker image to build Android app
https://github.com/thenets/docker-android

Last synced: 5 months ago
JSON representation

Docker image to build Android app

Awesome Lists containing this project

README

          

# docker-android
Docker image to build Android app.

ONLY FOR DEVELOPMENT! Don't use this image for production. You need to generate new licenses.

## How to use

Create a `Dockerfile` inside the Android project.

```dockerfile
FROM thenets/android

# Create application dir
ENV APP_DIR=/application
RUN mkdir $APP_DIR
WORKDIR $APP_DIR

# Add source code
ADD ./ $APP_DIR

RUN set -x \
# Replace CRLF by LF (Fix if you're using Windows)
&& apt-get install -y dos2unix \
&& dos2unix ** \
# Build APK
&& chmod +x gradlew \
&& ./gradlew assemble \

```

And build it with `docker build -t myaccount/myproject .`.