diff --git a/Dockerfile b/Dockerfile index fee627c..143f6e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,38 +1,29 @@ -# Use the F-Droid GitLab image as the base -FROM registry.gitlab.com/fdroid/docker-executable-fdroidserver:master - -# Set the timezone environment variable (adjust as needed) -ENV TZ=UTC +# build the F-Droid repository +FROM ubuntu RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -# Update the system and install python3-pip -RUN apt-get update && \ +RUN apt-get update +RUN apt-get install -y software-properties-common +RUN add-apt-repository ppa:fdroid/fdroidserver +RUN apt-get update +RUN apt-get install -y fdroidserver +### FIX FOR ANDROGUARD VERSION ### +RUN apt-get -y update && \ apt-get -y dist-upgrade && \ apt-get -y install python3-pip - -# Clone and install a recent version of Androguard +# we install a recent version of androguard RUN git clone --recursive https://github.com/androguard/androguard.git && \ cd androguard && \ git reset --hard v4.1.2 && \ pip install . --break-system-packages - -# (Optional) Initialize and update the F-Droid repository +### -------------------------- ### WORKDIR /fdroid -RUN fdroid init -v && fdroid update - -# Install NGINX and curl for Filebrowser +RUN fdroid init -v +RUN fdroid update +# serve the /repo directory using Filebrowser and NGINX RUN apt-get install -y nginx curl - -# Copy NGINX configuration from local settings COPY ./settings/nginx.conf /etc/nginx/nginx.conf - -# Install Filebrowser using the official install script RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash - -# Copy Filebrowser configuration files COPY ./settings/fb-settings.json /usr/local/.fbconfig/settings.json COPY ./settings/fb-users.json /usr/local/.fbconfig/users.json - -# Set the entrypoint and command to launch NGINX and Filebrowser ENTRYPOINT [] CMD ["bash", "-c", "nginx && /usr/local/bin/filebrowser --config /usr/local/.fbconfig/settings.json"]