-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
45 lines (32 loc) · 1.19 KB
/
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
40
41
42
43
44
45
#
# Docker image to run nduja
#
# Set the base image
FROM ubuntu:artful
# Dockerfile author / maintainer
MAINTAINER Mirko Bez <mirko.bez@studenti.unipd.it>
RUN apt-get update && \
apt-get install dirmngr -y && \
# Following the instructions for ubuntu given at
# https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#gnulinux
echo "deb http://downloads.skewed.de/apt/artful artful universe" >> /etc/apt/sources.list && \
echo "deb-src http://downloads.skewed.de/apt/artful artful universe" >> /etc/apt/sources.list && \
apt-key adv --keyserver pgp.skewed.de --recv-key 612DEFB798507F25 && \
apt-get update && \
apt-get install python3 -y && \
apt-get install -y python3-graph-tool && \
apt-get install python3-pip -y && \
apt-get install graphviz-dev -y && \
apt-get remove dirmngr -y && \
rm -rf /var/lib/apt/lists/* && \
apt-get remove -y && \
apt-get autoclean -y && \
apt-get autoremove -y
RUN mkdir project
VOLUME ["project"]
COPY requirements.txt ./project
WORKDIR project/
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
# Default Command
CMD ["python3", "./Nduja", "-c", "conf.json"]