docker-executable-fdroidserver/Dockerfile
Chirayu Desai c47a594423 git: Set /repo as safe directory
* https://stackoverflow.com/questions/69470009/git-diff-cached-unknown-option-cached
* Fixes
  git.exc.GitCommandError: Cmd('git') failed due to: exit code(129)
    cmdline: git diff --cached --abbrev=40 --full-index --raw
    stderr: 'error: unknown option `cached'
  usage: git diff --no-index [<options>] <path> <path>

Closes #24
2023-07-10 21:52:01 +05:30

26 lines
830 B
Docker

FROM registry.gitlab.com/fdroid/fdroidserver:buildserver
COPY signing-key.asc /
RUN gpg --import /signing-key.asc
RUN . /etc/profile.d/bsenv.sh \
&& git clone --depth 1 https://gitlab.com/fdroid/fdroidserver.git "${fdroidserver}"
# Install additional utilities required by actual builds (list subject to future expansion)
# build-tools 32.0.0 is needed for a good apksigner
RUN . /etc/profile.d/bsenv.sh \
&& apt-get update && apt-get install --yes \
patch \
autoconf libtool pkg-config \
ant \
&& echo y | sdkmanager "build-tools;32.0.0" \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN git config --global safe.directory /repo
VOLUME ["/repo"]
WORKDIR /repo
ENTRYPOINT ["sh", "-c", ". /etc/profile.d/bsenv.sh && GRADLE_USER_HOME=${home_vagrant}/.gradle ${fdroidserver}/fdroid \"$@\"", "-s"]
CMD ["--help"]