Skip to content

Commit a1a3ab0

Browse files
authored
Merge pull request #686 from snyk/fix/update-skopeo
fix: update skopeo to fix vulnerabilities
2 parents 578c351 + 5c37966 commit a1a3ab0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#---------------------------------------------------------------------
22
# STAGE 1: Build skopeo inside a temporary container
33
#---------------------------------------------------------------------
4-
FROM golang:1.13.1-alpine3.10 AS skopeo-build
4+
FROM fedora:32 AS skopeo-build
55

6-
RUN apk --no-cache add git make gcc musl-dev ostree-dev go-md2man
7-
RUN git clone --depth 1 -b 'v0.2.0' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
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.2.2' https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
89
RUN cd $GOPATH/src/github.com/containers/skopeo \
9-
&& make binary-local-static DISABLE_CGO=1 \
10+
&& make bin/skopeo DISABLE_CGO=1 \
1011
&& make install
1112

1213
#---------------------------------------------------------------------
1314
# STAGE 2: Build the kubernetes-monitor
1415
#---------------------------------------------------------------------
15-
FROM registry.access.redhat.com/ubi8/ubi:latest
16+
FROM registry.access.redhat.com/ubi8/ubi:8.3
1617

1718
LABEL name="Snyk Controller" \
1819
maintainer="[email protected]" \

0 commit comments

Comments
 (0)