# Do not invoke directly, use `make`.
FROM python:3.7

WORKDIR /app

# Install dependencies
COPY pip.conf /etc/pip.conf
COPY requirements.txt constraints.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt -c constraints.txt

# Copy app and precompile
COPY processor ./processor
RUN python3 -m compileall ./processor

# Run processor
CMD ["python3", "-m", "processor"]
