Skip to content

Commit

Permalink
Use bookworm slim to build sushy-tools image
Browse files Browse the repository at this point in the history
It should reduce the final size of the image from 1.2GB to 300MB

Signed-off-by: Riccardo Pittau <[email protected]>
  • Loading branch information
elfosardo committed Jan 10, 2024
1 parent d62a9b7 commit fc2a53e
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 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 fc2a53e

Please sign in to comment.