Skip to content

Commit

Permalink
Merge pull request #473 from elfosardo/reduce-sushy-tools-size
Browse files Browse the repository at this point in the history
🌱 Use bookworm slim to build sushy-tools image
  • Loading branch information
metal3-io-bot authored Jan 10, 2024
2 parents ecc155b + 3894323 commit 8605ad1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions resources/sushy-tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM docker.io/library/python:3.9
FROM docker.io/library/python:3.9.18-slim-bookworm

ARG SUSHY_TOOLS_VERSION="1.1.0"
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y libvirt-dev && \
apt-get install -y libvirt-dev ssh gcc && \
apt-get clean && \
pip3 install --no-cache-dir \
sushy-tools==${SUSHY_TOOLS_VERSION} libvirt-python openstacksdk
sushy-tools==${SUSHY_TOOLS_VERSION} libvirt-python openstacksdk && \
apt-get --purge autoremove -y gcc

COPY redfish-emulator.sh /usr/local/bin/

Expand Down

0 comments on commit 8605ad1

Please sign in to comment.