This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
revanced-builder/Dockerfile
2023-06-13 14:58:40 +03:00

23 lines
719 B
Docker

FROM ubuntu
RUN apt-get update && apt-get install -y gettext-base git jq openjdk-17-jdk zip wget
RUN git clone --recurse https://github.com/revanced-apks/build-apps.git /app
WORKDIR /app
COPY config.toml config.toml
COPY options.json options.json
RUN sed -i 's/--keystore=ks\.keystore/--keystore=ks\.keystore --options=options.json/' utils.sh
RUN sed -i 's/$(nproc)/2/g' build.sh
RUN sed -i 's/patch_apk() {/patch_apk() {\n envsubst < options.json > options.json.tmp\n mv options.json.tmp options.json/' utils.sh
ENV GITHUB_TOKEN=
ENV REDDIT_OAUTH_CLIENT_ID=
RUN groupadd -g 1000 revanced
RUN useradd -u 1000 -g revanced revanced
RUN chown -R revanced:revanced /app
USER revanced
CMD [ "bash", "build.sh" ]