Merge pull request #378 from taoliu/fix_setup_script_364
[MACS.git] / DOCKER / Dockerfile-slim
blob51b2b2a32553806fda83e72120484eb18151b73a
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
9 FROM python:3.7-slim
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
16 ENTRYPOINT ["macs2"]