Pin container image versions

This commit is contained in:
katexochen 2022-10-07 16:13:49 +02:00 committed by Paul Meyer
parent 76e9d7c5ac
commit ef367275e1
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
FROM fedora:36 as build
FROM fedora:36@sha256:486fd5578f93fbc57a519e34ad4b7cac927c3f8a95409baedf0c19e9f287c207 as build
RUN dnf -y update && \
dnf -y install libvirt-devel @development-tools pkg-config wget git && \
@ -24,7 +24,7 @@ COPY . /qemu-metadata-api
WORKDIR /qemu-metadata-api/hack/qemu-metadata-api
RUN go build -o api-server ./main.go
FROM fedora:36 as release
FROM fedora:36@sha256:486fd5578f93fbc57a519e34ad4b7cac927c3f8a95409baedf0c19e9f287c207 as release
RUN dnf -y install libvirt-devel && \
dnf clean all
COPY --from=build /qemu-metadata-api/hack/qemu-metadata-api/api-server /server