This repository was archived by the owner on Dec 19, 2022. It is now read-only.
forked from Jenabri/modelbender
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (36 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
42 lines (36 loc) · 1.26 KB
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
40
41
FROM ubuntu:17.10
# Start with a basic python3.6 Ubuntu image
RUN apt-get update \
&& apt-get install -y software-properties-common curl \
&& apt autoremove -y \
&& apt-get update \
&& apt-get remove -y software-properties-common \
&& apt-get install -y python3.6 \
&& curl -o /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" \
&& python3.6 /tmp/get-pip.py
#
# && apt-get remove -y curl \
# && apt autoremove -y
# && rm -rf /var/lib/apt/lists/*
# install modelbender OS dependencies
RUN apt-get install -y graphviz
RUN apt-get install -y python-virtualenv
# don't do this...
# replace it with `pip install -r requirements.txt` once everything stabilises
# so that we have single version of truth for dependencies/dev
RUN pip install --upgrade pip
RUN pip install sphinx
RUN pip install click
RUN pip install ruamel.yaml
RUN pip install blockdiag
RUN pip install seqdiag
RUN pip install actdiag
RUN pip install nwdiag
# click is fussy about locales, which is OK by me
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
# install modelbender python dependencies
COPY . /app
# Do this when stable, but it's a pain to wait every build when code changes
# RUN pip install -r /app/requirements.txt
ENTRYPOINT ["python3.6", "/app/scripts/modelbender.py"]