File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN apt-get update
17
17
RUN apt-get install -y curl ca-certificates
18
18
19
19
# Install gcc which is required for installing hiredis
20
- RUN apt-get install -y gcc
20
+ RUN apt-get install -y gcc make
21
21
22
22
{% if docker_snmp_sv 2_debs .strip () -%}
23
23
# Copy locally-built Debian package dependencies
@@ -38,6 +38,9 @@ RUN python3.6 -m pip install --no-cache-dir hiredis
38
38
# Install pyyaml dependency for use by some plugins
39
39
RUN python3.6 -m pip install --no-cache-dir pyyaml
40
40
41
+ # Install smbus dependency for use by some plugins
42
+ RUN python3.6 -m pip install --no-cache-dir smbus
43
+
41
44
{% if docker_snmp_sv 2_whls .strip () -%}
42
45
# Copy locally-built Python wheel dependencies
43
46
{% - for whl in docker_snmp_sv 2_whls .split (' ' ) %}
@@ -53,7 +56,7 @@ RUN pip install /python-wheels/{{ whl }}
53
56
RUN python3.6 -m sonic_ax_impl install
54
57
55
58
# Clean up
56
- RUN apt-get -y purge libpython3.6-dev curl gcc
59
+ RUN apt-get -y purge libpython3.6-dev curl gcc make
57
60
RUN apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y --purge
58
61
RUN find / | grep -E "__pycache__" | xargs rm -rf
59
62
RUN rm -rf /debs /python-wheels ~/.cache
You can’t perform that action at this time.
0 commit comments