Skip to content

Commit f2f9b7e

Browse files
committed
fix: upgrade skopeo to fix vulnerabilities
1 parent 5cfdead commit f2f9b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM fedora:32 AS skopeo-build
55

66
RUN dnf install -y golang git make
77
RUN dnf install -y go-md2man gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
8-
RUN git clone --depth 1 -b 'v1.2.2' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
8+
RUN git clone --depth 1 -b 'v1.4.0' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
99
RUN cd $GOPATH/src/github.com/containers/skopeo \
1010
&& make bin/skopeo DISABLE_CGO=1 \
1111
&& make install
@@ -42,7 +42,7 @@ RUN rm /install.sh
4242

4343
WORKDIR /srv/app
4444

45-
COPY --chown=snyk:snyk --from=skopeo-build /usr/bin/skopeo /usr/bin/skopeo
45+
COPY --chown=snyk:snyk --from=skopeo-build /usr/local/bin/skopeo /usr/bin/skopeo
4646
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/registries.d/default.yaml /etc/containers/registries.d/default.yaml
4747
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/policy.json /etc/containers/policy.json
4848

0 commit comments

Comments
 (0)