Files
flood/Dockerfile.release
Jesse Chan fb3cdb52e7 Dockerfile.release: add support for channel and version
Development channel -> latest version:

--build-arg PACKAGE=@jesec/flood

Release channel -> latest (patch of latest minor) version of v4:

--build-arg VERSION=4

Release channel -> latest (patch) version of v4.3:

--build-arg VERSION=4.3

Release channel -> v4.3.1 only:

--build-arg VERSION=4.3.1
2021-01-13 11:37:53 +08:00

28 lines
531 B
Docker

# 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"]