dist/containers: move Dockerfiles out of the root directory

This commit is contained in:
Jesse Chan
2021-01-30 20:03:23 +08:00
parent 93f059692e
commit 2fa2fa0b34
5 changed files with 5 additions and 4 deletions
@@ -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"]