mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
dist/containers: move Dockerfiles out of the root directory
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Use node alpine docker image
|
||||
FROM node:alpine
|
||||
|
||||
ARG PACKAGE=flood
|
||||
ARG VERSION=latest
|
||||
|
||||
# Get specified version from npm
|
||||
RUN npm i -g "${PACKAGE}"@"${VERSION}" &&\
|
||||
node --version &&\
|
||||
npm ls --global &&\
|
||||
npm cache clean --force
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN apk --no-cache add \
|
||||
mediainfo
|
||||
|
||||
# Create "download" user
|
||||
RUN adduser -h /home/download -s /sbin/nologin --disabled-password download
|
||||
|
||||
# Run as "download" user
|
||||
USER download
|
||||
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
# Flood
|
||||
ENTRYPOINT ["flood", "--host=0.0.0.0"]
|
||||
@@ -0,0 +1,12 @@
|
||||
ARG FLOOD_VERSION=latest
|
||||
ARG RTORRENT_VERSION=latest
|
||||
|
||||
FROM jesec/rtorrent:$RTORRENT_VERSION as rtorrent
|
||||
|
||||
FROM jesec/flood:$FLOOD_VERSION as flood
|
||||
|
||||
# Install rTorrent
|
||||
COPY --from=rtorrent / /
|
||||
|
||||
# Flood with managed rTorrent daemon
|
||||
ENTRYPOINT ["flood", "--host=0.0.0.0", "--rtorrent"]
|
||||
Reference in New Issue
Block a user