forked from faucetsdn/NetworkML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (46 loc) · 1.38 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 debian:stretch-slim
LABEL maintainer="Charlie Lewis <[email protected]>"
ENV BUILD_PACKAGES="\
build-essential \
linux-headers-4.9 \
python3-dev \
cmake \
tcl-dev \
xz-utils \
zlib1g-dev \
git \
curl" \
APT_PACKAGES="\
ca-certificates \
openssl \
python3 \
python3-pip \
tcpdump" \
PATH=/usr/local/bin:$PATH \
LANG=C.UTF-8
COPY requirements.txt requirements.txt
RUN set -ex; \
apt-get update -y; \
apt-get install -y --no-install-recommends ${APT_PACKAGES}; \
apt-get install -y --no-install-recommends ${BUILD_PACKAGES}; \
ln -s /usr/bin/idle3 /usr/bin/idle; \
ln -s /usr/bin/pydoc3 /usr/bin/pydoc; \
ln -s /usr/bin/python3 /usr/bin/python; \
ln -s /usr/bin/python3-config /usr/bin/python-config; \
ln -s /usr/bin/pip3 /usr/bin/pip; \
pip install -U setuptools wheel; \
pip install -U -r requirements.txt; \
apt-get remove --purge --auto-remove -y ${BUILD_PACKAGES}; \
apt-get clean; \
apt-get autoclean; \
apt-get autoremove; \
rm -rf /tmp/* /var/tmp/*; \
rm -rf /var/lib/apt/lists/*; \
rm -f /var/cache/apt/archives/*.deb \
/var/cache/apt/archives/partial/*.deb \
/var/cache/apt/*.bin; \
rm -rf /root/.[acpw]*
COPY . /poseidonml
WORKDIR /poseidonml
RUN pip install .
ENTRYPOINT ["networkml"]