diff --git a/flower/Dockerfile b/flower/Dockerfile new file mode 100644 index 0000000..519bbcc --- /dev/null +++ b/flower/Dockerfile @@ -0,0 +1,20 @@ +FROM python:alpine + +# Get latest root certificates +RUN apk add --update ca-certificates && update-ca-certificates + +# Install the required packages +RUN pip install redis flower==0.9.2 + +# PYTHONUNBUFFERED: Force stdin, stdout and stderr to be totally unbuffered. (equivalent to `python -u`) +# PYTHONHASHSEED: Enable hash randomization (equivalent to `python -R`) +# PYTHONDONTWRITEBYTECODE: Do not write byte files to disk, since we maintain it as readonly. (equivalent to `python -B`) +ENV PYTHONUNBUFFERED=1 PYTHONHASHSEED=random PYTHONDONTWRITEBYTECODE=1 + +# Default port +EXPOSE 5555 + +# Run as a non-root user by default, run as user with least privileges. +USER nobody + +ENTRYPOINT ["flower"]