@@ -3,35 +3,34 @@ FROM docker-config-engine
3
3
# Make apt-get non-interactive
4
4
ENV DEBIAN_FRONTEND=noninteractive
5
5
6
- # Update apt's package index files
6
+ # Update apt's cache of available packages
7
7
RUN apt-get update
8
8
9
9
# Install required packages
10
- RUN apt-get install -y python-pip sensord fancontrol
10
+ RUN apt-get install -y python-pip libpython2.7 sensord fancontrol
11
11
12
12
{% if docker_platform_monitor_debs .strip () -%}
13
- # Copy all locally-built Debian package dependencies
14
- COPY{{' '}}
15
- {% - for deb in docker_platform_monitor_debs .split (' ' ) -%}
16
- debs/{{ deb }}{{' '}}
17
- {% - endfor -%}
18
- /debs/
19
-
20
- # Install all locally-built Debian package dependencies
21
- # and implicitly install their dependencies
22
- RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; dpkg_apt /debs/*.deb
23
- {% endif %}
13
+ # Copy locally-built Debian package dependencies
14
+ {% - for deb in docker_platform_monitor_debs .split (' ' ) %}
15
+ COPY debs/{{ deb }} /debs/
16
+ {% - endfor %}
17
+
18
+ # Install locally-built Debian packages and implicitly install their dependencies
19
+ {% - for deb in docker_platform_monitor_debs .split (' ' ) %}
20
+ RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; dpkg_apt /debs/{{ deb }}
21
+ {% - endfor %}
22
+ {% - endif %}
24
23
25
24
{% if docker_platform_monitor_whls .strip () -%}
26
- # Copy all locally-built Python wheel dependencies
27
- COPY{{ ' '} }
28
- {% - for whl in docker_platform_monitor_whls . split ( ' ' ) - %}
29
- python-wheels/{{ whl }}{{' '} }
30
- {% - endfor - %}
31
- /python-wheels/
32
-
33
- # Install all locally-built Python wheel dependencies
34
- RUN pip install /python-wheels/*.whl
25
+ # Copy locally-built Python wheel dependencies
26
+ {% - for whl in docker_platform_monitor_whls . split ( ' ' ) % }
27
+ COPY python-wheels/{{ whl }} /python-wheels/
28
+ {% - endfor % }
29
+
30
+ # Install locally-built Python wheel dependencies
31
+ {% - for whl in docker_platform_monitor_whls . split ( ' ' ) %}
32
+ RUN pip install /python-wheels/{{ whl }}
33
+ {% - endfor %}
35
34
{% endif %}
36
35
37
36
# Clean up
0 commit comments