-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (23 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3-slim
# Install JDK 21 (Elcipse Temurin)
RUN apt-get update \
&& apt-get install apt-transport-https gpg wget -y \
&& wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null \
&& echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list \
&& apt-get update \
&& apt-get install temurin-21-jdk -y \
&& rm -f /etc/apt/trusted.gpg.d/adoptium.gpg \
&& rm -f /etc/apt/sources.list.d/adoptium.list \
&& rm -rf /var/lib/apt/lists/*
# Install required tools for F-Droid
RUN apt-get update \
&& apt-get install ca-certificates apksigner git rsync curl -y \
&& rm -rf /var/lib/apt/lists/*
# Install fdroidserver (latest versions to fix some bugs)
RUN pip install --no-cache-dir androguard \
&& rm -rf /root/.cache
RUN pip install --no-cache-dir git+https://gitlab.com/fdroid/fdroidserver.git \
&& rm -rf /root/.cache
COPY ./build.sh /build.sh
RUN chmod +x /build.sh
ENTRYPOINT [ "/bin/bash", "-c", "/build.sh" ]