From 8c4f2a4d1128d0a9d993b04d23c9448c5e0598ae Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Tue, 2 Jun 2020 19:26:38 +0200 Subject: [PATCH] flood-ui: add --- README.md | 1 + flood-ui/Dockerfile | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 flood-ui/Dockerfile diff --git a/README.md b/README.md index 4c57b6d..df11a75 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ INFO: Done building! |img|`docker pull d.xr.to/img`||[img](https://github.com/genuinetools/img): Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.|| |coredns|`docker pull d.xr.to/coredns`||[coredns](https://github.com/coredns/coredns): CoreDNS is a DNS server that chains plugins (pre-configured with unbound, and removed grpc, clouddns, kubernetes, azure and route53 support)|| |rtorrent|`docker pull d.xr.to/rtorrent`||rtorrent|| +|flood-ui|`docker pull d.xr.to/flood-ui`||[Flood UI](https://github.com/Flood-UI/flood) is a modern UI for rTorrent|| |xbps-builder|`docker pull d.xr.to/xbps-builder`||A container pre-configured for the `ethereal` build-style (debuted here!)|| # Todo diff --git a/flood-ui/Dockerfile b/flood-ui/Dockerfile new file mode 100644 index 0000000..47f251c --- /dev/null +++ b/flood-ui/Dockerfile @@ -0,0 +1,40 @@ +FROM d.xr.to/base as source +RUN xbps-remote git && mkdir /app +RUN git clone https://github.com/Flood-UI/flood.git /app + +FROM d.xr.to/base as nodebuild + +WORKDIR /app + +COPY --from=source /app/package.json \ + /app/package-lock.json \ + /app/.babelrc \ + /app/.eslintrc.js \ + /app/.eslintignore \ + /app/.prettierrc \ + /app/ABOUT.md \ + /app/ +# Install mediainfo and move CLI tool because we don't need the gui +RUN xbps-remote base-devel nodejs yarn python mediainfo && \ + yarn + +COPY --from=source /app/client /app/client +COPY --from=source /app/shared /app/shared +COPY --from=source /app/scripts /app/scripts +COPY --from=source /app/server /app/server +COPY --from=source /app/config.docker.js /app/config.js +RUN yarn build && \ + yarn install --prod + +FROM d.xr.to/base as flood +WORKDIR /app + +RUN xbps-remote libmediainfo nodejs + +COPY --from=nodebuild /app /app +COPY --from=nodebuild /bin/mediainfo /bin/mediainfo + +EXPOSE 3000 +VOLUME ["/data"] + +CMD [ "npm", "start" ] \ No newline at end of file