Dockerfile.release: a Dockerfile that uses the latest release

docker run -it -p 3000:3000 jesec/flood
This commit is contained in:
Jesse Chan
2020-09-04 22:35:39 +08:00
parent c4b092f30c
commit 967bd0a188

21
Dockerfile.release Normal file
View File

@@ -0,0 +1,21 @@
# Use node alpine docker image
FROM node:alpine
# Get the latest release from npm
RUN npm i -g flood --unsafe-perm
# 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"]