-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
49 lines (40 loc) · 1.02 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
46
47
48
49
FROM ubuntu:18.04
MAINTAINER Manh Nguyen Duc ([email protected]), Patrik Schneider ([email protected])
LABEL Description="SR Hackathon 2021 integration Dockerised Simulation of Urban MObility(SUMO)"
ENV SUMO_HOME /usr/share/sumo
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# Install system dependencies.
RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
PIP3_INSTALL="python3 -m pip --no-cache-dir install --upgrade" && \
apt update && \
DEBIAN_FRONTEND=noninteractive $APT_INSTALL \
python3 \
python3-pip \
software-properties-common \
&& \
$PIP3_INSTALL \
setuptools && \
$PIP3_INSTALL \
flask \
pyyaml \
websocket_server==0.4 \
websocket-client \
requests \
rdflib \
rdflib-jsonld==0.6.1 \
&& \
ldconfig \
&& \
add-apt-repository -y ppa:sumo/stable &&\
apt update && \
DEBIAN_FRONTEND=noninteractive $APT_INSTALL \
sumo \
sumo-tools \
&& \
apt remove software-properties-common -y && \
apt clean -y && \
apt autoremove -y
WORKDIR /root
COPY . .
CMD ["python3", "src/main.py"]