-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.intel
50 lines (40 loc) · 2.04 KB
/
Dockerfile.intel
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
50
FROM ubuntu:18.04
MAINTAINER Tuhin Sharma "[email protected]"
# --------------------------------------------------------------------------------------------------
# install ubuntu essentials
# --------------------------------------------------------------------------------------------------
RUN apt-get update --fix-missing && \
apt-get -y install build-essential && \
apt-get install -y apt-utils && \
apt-get -y install zlib1g-dev && \
apt-get install -y libssl-dev && \
apt-get install -y libbz2-dev && \
apt-get install -y liblzma-dev && \
apt-get -y install wget
# --------------------------------------------------------------------------------------------------
# install python 3.6.8
# --------------------------------------------------------------------------------------------------
ENV PYTHON_VERSION 3.6.8
RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz && \
tar -xzf Python-$PYTHON_VERSION.tgz && \
cd Python-$PYTHON_VERSION && \
./configure && \
make && \
make install
## --------------------------------------------------------------------------------------------------
## install python packages
## --------------------------------------------------------------------------------------------------
COPY ./requirements.txt /
RUN pip3 install -r /requirements.txt
# --------------------------------------------------------------------------------------------------
# copy src code and scripts into root dir /
# --------------------------------------------------------------------------------------------------
COPY ./intel_platform /intel_platform
COPY ./utils /utils
COPY ./config.py.template /config.py
# --------------------------------------------------------------------------------------------------
# add entrypoint for the container
# --------------------------------------------------------------------------------------------------
ADD ./deployment_config/scripts/entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]