2023-03-01 21:54:59 +01:00
|
|
|
FROM registry.gitlab.com/fdroid/fdroidserver:buildserver
|
2017-07-02 13:53:46 +02:00
|
|
|
|
2017-09-08 09:33:25 +02:00
|
|
|
COPY signing-key.asc /
|
|
|
|
|
|
|
|
RUN gpg --import /signing-key.asc
|
|
|
|
|
2023-03-01 21:54:59 +01:00
|
|
|
RUN . /etc/profile.d/bsenv.sh \
|
|
|
|
&& git clone --depth 1 https://gitlab.com/fdroid/fdroidserver.git "${fdroidserver}"
|
2017-07-02 13:53:46 +02:00
|
|
|
|
2018-04-04 20:48:43 +02:00
|
|
|
# Install additional utilities required by actual builds (list subject to future expansion)
|
2022-02-15 12:52:03 +01:00
|
|
|
# build-tools 32.0.0 is needed for a good apksigner
|
2023-03-01 21:54:59 +01:00
|
|
|
RUN . /etc/profile.d/bsenv.sh \
|
|
|
|
&& apt-get update && apt-get install --yes \
|
2018-04-04 20:48:43 +02:00
|
|
|
patch \
|
|
|
|
autoconf libtool pkg-config \
|
2023-03-01 21:54:59 +01:00
|
|
|
ant \
|
|
|
|
&& echo y | sdkmanager "build-tools;32.0.0" \
|
2018-04-04 20:48:43 +02:00
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2023-07-10 18:10:13 +02:00
|
|
|
RUN git config --global safe.directory /repo
|
|
|
|
|
2017-07-02 13:53:46 +02:00
|
|
|
VOLUME ["/repo"]
|
|
|
|
WORKDIR /repo
|
|
|
|
|
2023-03-01 21:54:59 +01:00
|
|
|
ENTRYPOINT ["sh", "-c", ". /etc/profile.d/bsenv.sh && GRADLE_USER_HOME=${home_vagrant}/.gradle ${fdroidserver}/fdroid \"$@\"", "-s"]
|
2017-07-03 00:03:58 +02:00
|
|
|
CMD ["--help"]
|