Skip to content

Commit

Permalink
pin flower to 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmosgenius committed Jun 7, 2018
1 parent 9fd0ec6 commit d0a7e4f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions flower/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit d0a7e4f

Please sign in to comment.