Skip to content

Commit

Permalink
Cleanup Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Nahum Shalman <nshalman@equinix.com>
  • Loading branch information
nshalman committed Jan 4, 2024
1 parent f8ac26f commit fd1ddd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ RUN microdnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 \
pciutils \
smartmontools \
tar \
udev \
unzip \
util-linux \
python \
Expand All @@ -97,14 +98,13 @@ RUN microdnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 \

RUN pip install uefi_firmware==v1.11

# Install our custom flashrom package
COPY --from=flashrom /root/rpmbuild/RPMS/x86_64/flashrom*.rpm /tmp
RUN rpm -ivh /tmp/flashrom*.rpm

# Delete /tmp/* as we don't need those included in the image.
RUN rm -rf /tmp/*

COPY --from=flashrom /root/rpmbuild/RPMS/x86_64/flashrom*.rpm /tmp
RUN microdnf install -y udev
RUN rpm -ivh /tmp/flashrom*.rpm

# Build a lean image with dependencies installed.
FROM scratch
COPY --from=stage1 / /
Expand Down

0 comments on commit fd1ddd8

Please sign in to comment.