Included fdroid runtime inside docker image
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,5 +1,5 @@
|
|||||||
# First stage: build the F-Droid repository
|
# build the F-Droid repository
|
||||||
FROM ubuntu AS build
|
FROM ubuntu
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y software-properties-common
|
RUN apt-get install -y software-properties-common
|
||||||
@@ -9,14 +9,11 @@ RUN apt-get install -y fdroidserver
|
|||||||
WORKDIR /fdroid
|
WORKDIR /fdroid
|
||||||
RUN fdroid init -v
|
RUN fdroid init -v
|
||||||
RUN fdroid update
|
RUN fdroid update
|
||||||
|
# serve the /repo directory using Filebrowser and NGINX
|
||||||
# Second stage: serve the /repo directory using Filebrowser and NGINX
|
RUN apt-get install -y nginx curl
|
||||||
FROM filebrowser/filebrowser AS final
|
|
||||||
RUN apk update && apk add nginx
|
|
||||||
COPY --from=build /fdroid/ /
|
|
||||||
COPY settings.json /config/settings.json
|
|
||||||
RUN rm /etc/nginx/nginx.conf
|
RUN rm /etc/nginx/nginx.conf
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 8084
|
RUN curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
|
||||||
|
COPY settings.json /config/settings.json
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
CMD ["sh", "-c", "nginx && /filebrowser --config /config/settings.json"]
|
CMD ["bash", "-c", "nginx && /usr/local/bin/filebrowser --config /config/settings.json"]
|
||||||
@@ -6,11 +6,11 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Rome
|
- TZ=Europe/Rome
|
||||||
volumes:
|
volumes:
|
||||||
- repo:/fdroid/repo
|
- fdroid:/fdroid
|
||||||
- fbdb:/database
|
- filebrowser:/database
|
||||||
ports:
|
ports:
|
||||||
- ${WEB_PORT-8083}:80
|
- ${WEB_PORT-8083}:80
|
||||||
- ${REPO_PORT-8084}:8084
|
- ${REPO_PORT-8084}:8084
|
||||||
volumes:
|
volumes:
|
||||||
fbdb:
|
filebrowser:
|
||||||
repo:
|
fdroid:
|
||||||
|
|||||||
Reference in New Issue
Block a user