FROM mcarans/hdx-data-freshness

MAINTAINER Michael Rans <rans@email.com>

RUN apk add --no-cache --update postgresql-dev && \
    pip --no-cache-dir install hdx-data-freshness-emailer && \
    apk del build-base postgresql-dev && \
    apk add --no-cache libpq && \
    rm -r /root/.cache && \
    rm -rf /var/lib/apk/*

CMD ["python3", "-m", "hdx.freshness.emailer"]
