Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox]: Clean up syncd Python development packages #20556

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions platform/mellanox/docker-syncd-mlnx/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES.
## SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
## Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
## Apache-2.0
##
## Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,6 +15,7 @@
## See the License for the specific language governing permissions and
## limitations under the License.
##

{% from "dockers/dockerfile-macros.j2" import install_debian_packages, install_python_wheels, copy_files %}
FROM docker-config-engine-bookworm-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}

Expand All @@ -26,15 +28,14 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y \
libxml2 \
python3-pip \
python3-dev \
python-is-python3 \
python3-jsonschema \
{%- if ENABLE_ASAN == "y" %}
libasan6 \
{%- endif %}
python3-setuptools
libxml2 \
python3-pip \
python3-dev \
python3-jsonschema \
python-is-python3

RUN pip3 install --upgrade pip
RUN apt-get purge -y python-pip
Expand All @@ -56,8 +57,11 @@ RUN apt-get purge -y python-pip
{% endif %}

## Clean up
RUN apt-get clean -y && \
apt-get autoclean -y && \
RUN apt-get purge -y \
python3-dev \
python3-pip && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /debs

Expand Down
Loading