Skip to content

Commit 7ba059f

Browse files
committed
fix: install skopeo from package manager when building snyk-monitor
1 parent 4629f36 commit 7ba059f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Dockerfile

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

6-
RUN dnf install -y golang git make
7-
RUN dnf install -y go-md2man gpgme-devel libassuan-devel btrfs-progs-devel device-mapper-devel
8-
RUN git clone --depth 1 -b 'v1.6.0' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
9-
RUN cd $GOPATH/src/github.com/containers/skopeo \
10-
&& make bin/skopeo DISABLE_CGO=1 \
11-
&& make install
6+
RUN dnf install -y skopeo
127

138
#---------------------------------------------------------------------
149
# STAGE 2: Build credential helpers inside a temporary container
@@ -56,7 +51,7 @@ COPY --chown=snyk:snyk --from=cred-helpers-build /go/bin/docker-credential-acr-e
5651

5752
WORKDIR /srv/app
5853

59-
COPY --chown=snyk:snyk --from=skopeo-build /usr/local/bin/skopeo /usr/bin/skopeo
54+
COPY --chown=snyk:snyk --from=skopeo-build /usr/bin/skopeo /usr/bin/skopeo
6055
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/registries.d/default.yaml /etc/containers/registries.d/default.yaml
6156
COPY --chown=snyk:snyk --from=skopeo-build /etc/containers/policy.json /etc/containers/policy.json
6257

0 commit comments

Comments
 (0)