initial commit

This commit is contained in:
Daniele Viti
2023-09-12 16:50:00 +02:00
parent 16114a1c8a
commit 5b9f229291
7 changed files with 114 additions and 2 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# First stage: build the F-Droid repository
FROM ubuntu AS build
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
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
WORKDIR /fdroid
RUN fdroid init -v
RUN fdroid update
# Second stage: serve the /repo directory using Filebrowser
FROM filebrowser/filebrowser AS final
COPY --from=build /fdroid/ /
COPY settings.json /config/settings.json
CMD ["--config", "/config/settings.json"]