-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 865 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:2.7
MAINTAINER Pasha Katsev <pkatsev@gmail.com>
# workspace
RUN mkdir -p /data/cache
WORKDIR /data
# dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libpq-dev \
libxml2-dev \
libxslt-dev \
python-dev \
swig
# dl/extract mutalyzer release
RUN mkdir mutalyzer \
&& curl -fsSL \
https://github.com/mutalyzer/mutalyzer/archive/v2.0.17.tar.gz \
| tar zxC mutalyzer --strip=1
# python env
RUN pip install -U setuptools pip numpy psycopg2 \
&& pip install -r mutalyzer/requirements.txt \
&& pip install mutalyzer/
# settings
ENV MUTALYZER_SETTINGS /data/mutalyzer/settings.py
COPY etc/settings.py $MUTALYZER_SETTINGS
# scripts
COPY bin/* /data/
VOLUME ["/data/cache"]
ENTRYPOINT ["./entrypoint.sh"]
CMD ["mutalyzer-admin", "assemblies", "list"]