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
- Host: GitHub
- URL: https://github.com/thenets/docker-android
- Owner: thenets
- License: mit
- Created: 2018-08-01T01:06:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T02:50:58.000Z (almost 8 years ago)
- Last Synced: 2025-10-08T23:35:15.701Z (8 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 .`.