Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Oct 2, 2017
2 parents 3a85c80 + e81b0f8 commit 2b6edc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
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
14 changes: 11 additions & 3 deletions Dockerfile
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"]

0 comments on commit 2b6edc3

Please sign in to comment.