# docker build -t ingestmodule .

FROM python:3.4-alpine

COPY . /usr/src/app
WORKDIR /usr/src/app
RUN apk --update add --no-cache make gcc musl-dev linux-headers
RUN apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev \
    libxslt-dev
RUN apk add cairo-dev pango-dev libmagic
RUN pip install Cython && \
    python3 package.py bdist_wheel && \
    pip install --no-cache-dir dist/ingestmodule-*.whl

CMD ingestmodule --config-db-uri 'mongodb://db:27017' --job-id 123 \
    --source-store-id 0 -i /var/lib/ingestmodule/in -t /gtest/105
