19 lines
816 B
Docker
19 lines
816 B
Docker
# build the F-Droid repository
|
|
FROM ubuntu
|
|
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
|
|
# serve the /repo directory using Filebrowser and NGINX
|
|
RUN apt-get install -y nginx curl
|
|
COPY ./settings/nginx.conf /etc/nginx/nginx.conf
|
|
RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
|
COPY ./settings/fb-settings.json /usr/local/.fbconfig/settings.json
|
|
COPY ./settings/fb-users.json /usr/local/.fbconfig/users.json
|
|
ENTRYPOINT []
|
|
CMD ["bash", "-c", "nginx && /usr/local/bin/filebrowser --config /usr/local/.fbconfig/settings.json"] |