Docker build environment for CI/CD pipeline #1062

Closed
opened 2026-04-24 23:47:22 +02:00 by adam · 1 comment
Owner

Originally created by @mattheys on GitHub (Oct 14, 2024).

Has anyone had any success creating a Docker build environment to output built APK's. I'm looking at building the Android app for myself from the latest source in a consistent way without having to install everything locally.

At the moment it's failing because I need to provide signing keys, I don't know if that's my last issue or just the next one to get past. So if anyone has already done this I'd be grateful.

FROM node:20

WORKDIR /build
RUN git clone https://github.com/advplyr/audiobookshelf-app .
RUN npm install
RUN npm run generate
RUN npx cap sync

RUN apt update && apt install default-jre android-sdk sdkmanager -y
ENV ANDROID_HOME=/usr/lib/android-sdk

RUN yes | sdkmanager --licenses
RUN npx cap build android --androidreleasetype APK
Originally created by @mattheys on GitHub (Oct 14, 2024). Has anyone had any success creating a Docker build environment to output built APK's. I'm looking at building the Android app for myself from the latest source in a consistent way without having to install everything locally. At the moment it's failing because I need to provide signing keys, I don't know if that's my last issue or just the next one to get past. So if anyone has already done this I'd be grateful. ```yaml FROM node:20 WORKDIR /build RUN git clone https://github.com/advplyr/audiobookshelf-app . RUN npm install RUN npm run generate RUN npx cap sync RUN apt update && apt install default-jre android-sdk sdkmanager -y ENV ANDROID_HOME=/usr/lib/android-sdk RUN yes | sdkmanager --licenses RUN npx cap build android --androidreleasetype APK ```
adam closed this issue 2026-04-24 23:47:22 +02:00
Author
Owner

@advplyr commented on GitHub (Oct 14, 2024):

I haven't but we have a github workflow that builds APKs you can look at.
https://github.com/advplyr/audiobookshelf-app/blob/master/.github/workflows/build-apk.yml

@advplyr commented on GitHub (Oct 14, 2024): I haven't but we have a github workflow that builds APKs you can look at. https://github.com/advplyr/audiobookshelf-app/blob/master/.github/workflows/build-apk.yml
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1062