-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fd0ec6
commit d0a7e4f
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |