mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 04:15:06 +00:00
Dockerfile: bundle rTorrent (not started by default) in master-dbg image
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
#
|
#
|
||||||
# For development and debugging only. Use Dockerfile.release for production.
|
# For development and debugging only. Use Dockerfile.release for production.
|
||||||
#
|
#
|
||||||
|
# This image bundles rTorrent for easier debugging. It is not started by default.
|
||||||
|
# Use --rtorrent argument if you wish to start the bundled rTorrent.
|
||||||
|
# For production, use rtorrent-flood instead.
|
||||||
|
#
|
||||||
# This Dockerfile uses contents of current folder which might contain
|
# This Dockerfile uses contents of current folder which might contain
|
||||||
# secrets, uncommitted changes or other sensitive information. DO NOT
|
# secrets, uncommitted changes or other sensitive information. DO NOT
|
||||||
# publish the result image unless it was composed in a clean environment.
|
# publish the result image unless it was composed in a clean environment.
|
||||||
@@ -9,6 +13,8 @@
|
|||||||
ARG BUILDPLATFORM=amd64
|
ARG BUILDPLATFORM=amd64
|
||||||
ARG NODE_IMAGE=node:alpine
|
ARG NODE_IMAGE=node:alpine
|
||||||
|
|
||||||
|
FROM jesec/rtorrent:master as rtorrent
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM ${NODE_IMAGE} as nodebuild
|
FROM --platform=$BUILDPLATFORM ${NODE_IMAGE} as nodebuild
|
||||||
|
|
||||||
WORKDIR /usr/src/app/
|
WORKDIR /usr/src/app/
|
||||||
@@ -31,6 +37,9 @@ WORKDIR /usr/src/app/
|
|||||||
# Copy sources
|
# Copy sources
|
||||||
COPY --from=nodebuild /usr/src/app ./
|
COPY --from=nodebuild /usr/src/app ./
|
||||||
|
|
||||||
|
# Copy rTorrent
|
||||||
|
COPY --from=rtorrent / /
|
||||||
|
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
mediainfo
|
mediainfo
|
||||||
|
|||||||
Reference in New Issue
Block a user