-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
2 changed files
with
15 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
### membership-manager v0.2.0 (October 2, 2017) ### | ||
|
||
* Switch to python:3-alpine as base image | ||
|
||
### membership-manager v0.1.0 (September 15, 2017) ### | ||
|
||
* Initial release |
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 |
---|---|---|
@@ -1,11 +1,19 @@ | ||
FROM python:3 | ||
FROM python:3-alpine | ||
|
||
RUN pip install docker psycopg2 | ||
RUN apk add --no-cache \ | ||
--virtual psycodeps \ | ||
gcc \ | ||
musl-dev \ | ||
postgresql-dev \ | ||
python3-dev && \ | ||
pip install docker psycopg2 && \ | ||
apk add --no-cache libpq && \ | ||
apk del psycodeps | ||
|
||
ADD manager.py / | ||
|
||
# the manager creates a file when ready to consume events | ||
HEALTHCHECK --interval=1s --start-period=1s CMD /bin/bash -c 'test -f /manager-ready' | ||
HEALTHCHECK --interval=1s --start-period=1s CMD /bin/sh -c 'test -f /manager-ready' | ||
|
||
# -u necessary to flush logging to docker in a timely manner | ||
CMD [ "python", "-u", "./manager.py"] |