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

build: Update packages in release image #3635

Merged
merged 1 commit into from
Feb 1, 2023
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
13 changes: 9 additions & 4 deletions deploy/cephcsi/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ ARG SRC_DIR="/go/src/github.com/ceph/ceph-csi/"
ARG GO_ARCH
ARG BASE_IMAGE

FROM ${BASE_IMAGE} as builder
FROM ${BASE_IMAGE} as updated_base

RUN dnf -y update \
&& dnf clean all \
&& rm -rf /var/cache/yum

FROM updated_base as builder

LABEL stage="build"

Expand All @@ -28,8 +34,7 @@ RUN ${GOROOT}/bin/go version && ${GOROOT}/bin/go env
RUN dnf config-manager --disable \
tcmu-runner,tcmu-runner-source,tcmu-runner-noarch || true

RUN dnf -y update \
&& dnf -y install --nodocs \
RUN dnf -y install --nodocs \
librados-devel librbd-devel \
/usr/bin/cc \
make \
Expand All @@ -56,7 +61,7 @@ COPY . ${SRC_DIR}
RUN make cephcsi

#-- Final container
FROM ${BASE_IMAGE}
FROM updated_base

ARG SRC_DIR

Expand Down