1 # Use an official Python runtime as a parent image
2 FROM python:3.7 AS build
4 # install numpy and MACS2
5 RUN git clone https://github.com/taoliu/MACS.git /MACS
6 RUN pip install --trusted-host pypi.python.org --upgrade pip && pip install --trusted-host pypi.python.org -r /MACS/requirements.txt
7 RUN cd /MACS && python setup.py install
11 # copy compiled files over to python-slim
12 COPY --from=build /usr/local/bin/macs2 /usr/local/bin/
13 COPY --from=build /usr/local/lib/python3.7/site-packages/ /usr/local/lib/python3.7/site-packages/
15 # Define environment variable