aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_orchestrator/conf/dockers/template.dockerfile
blob: 6bb8a0c6639ff1428718c172156ab9e275fa0a14 (plain)
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
# Pull base image.
FROM ubuntu:latest

{{ proxy }}

RUN apt-get update && apt-get install python3.5 python3-pip -y

ADD dist/moon_utilities-0.1.0.tar.gz /root
WORKDIR /root/moon_utilities-0.1.0
RUN pip3 install pip --upgrade
RUN pip3 install --upgrade -r requirements.txt
RUN pip3 install --upgrade .

ADD dist/moon_db-0.1.0.tar.gz /root
WORKDIR /root/moon_db-0.1.0
RUN pip3 install --upgrade -r requirements.txt
RUN pip3 install --upgrade .

{{ run }}

{% for port in ports %}
EXPOSE {{ port }}
{% endfor %}

CMD {{ cmd }}