mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 03:56:42 +00:00
distribution/containers: suggest env as a possible alternative to args (#262)
Co-authored-by: Jesse Chan <jc@linux.com>
This commit is contained in:
@@ -6,6 +6,7 @@ WORKDIR /root
|
||||
|
||||
# Install Flood and dependencies to /bin
|
||||
RUN mkdir -p /root/sysroot/bin
|
||||
|
||||
COPY ./artifacts artifacts
|
||||
RUN if [[ `uname -m` == "aarch64" ]]; \
|
||||
then mv artifacts/flood-linux-arm64 flood; \
|
||||
@@ -13,7 +14,12 @@ RUN if [[ `uname -m` == "aarch64" ]]; \
|
||||
then mv artifacts/flood-linux-x64 flood; \
|
||||
fi
|
||||
RUN mv flood /root/sysroot/bin/flood
|
||||
|
||||
COPY --from=busybox /bin/busybox_DF /root/sysroot/bin/df
|
||||
|
||||
RUN apk --no-cache add tini-static
|
||||
RUN cp /sbin/tini-static /root/sysroot/bin/tini
|
||||
|
||||
RUN chmod 0555 /root/sysroot/bin/*
|
||||
|
||||
# Create 1001:1001 user
|
||||
@@ -33,7 +39,8 @@ USER 1001:1001
|
||||
EXPOSE 3000
|
||||
|
||||
# Flood
|
||||
ENTRYPOINT ["flood", "--host=0.0.0.0"]
|
||||
ENV FLOOD_OPTION_HOST="0.0.0.0"
|
||||
ENTRYPOINT ["/bin/tini", "--", "flood"]
|
||||
|
||||
# rtorrent-flood image
|
||||
FROM jesec/rtorrent:master as rtorrent
|
||||
@@ -43,4 +50,4 @@ FROM flood as rtorrent-flood
|
||||
COPY --from=rtorrent / /
|
||||
|
||||
# Flood with managed rTorrent daemon
|
||||
ENTRYPOINT ["flood", "--host=0.0.0.0", "--rtorrent"]
|
||||
ENV FLOOD_OPTION_RTORRENT="true"
|
||||
|
||||
@@ -25,4 +25,5 @@ USER download
|
||||
EXPOSE 3000
|
||||
|
||||
# Flood
|
||||
ENTRYPOINT ["/sbin/tini", "--", "flood", "--host=0.0.0.0"]
|
||||
ENV FLOOD_OPTION_HOST="0.0.0.0"
|
||||
ENTRYPOINT ["/sbin/tini", "--", "flood"]
|
||||
|
||||
@@ -9,4 +9,4 @@ FROM jesec/flood:$FLOOD_VERSION as flood
|
||||
COPY --from=rtorrent / /
|
||||
|
||||
# Flood with managed rTorrent daemon
|
||||
ENTRYPOINT ["/sbin/tini", "--", "flood", "--host=0.0.0.0", "--rtorrent"]
|
||||
ENV FLOOD_OPTION_RTORRENT="true"
|
||||
|
||||
Reference in New Issue
Block a user