Skip to content

Commit e181e19

Browse files
authored
Merge pull request #104 from chrroberts-pure/update-dockerfile-cve
Remove apk cache at build time.
2 parents c31bdac + 95f63f8 commit e181e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN CGO_ENABLED=1 go build -a -tags 'netgo osusergo static_build' -ldflags="-X m
1414
# alpine is used here as it seems to be the minimal image that passes quay.io vulnerability scan
1515
FROM alpine
1616
# update ssl packages for CVEs
17-
RUN apk update && apk add --upgrade libcrypto3 libssl3
17+
RUN apk update && apk add --upgrade libcrypto3 libssl3 && rm -rf /var/cache/apk/*
1818
COPY --from=build /usr/local/bin/pure-fa-om-exporter /pure-fa-om-exporter
1919

2020
# create an empty tokens file for use with volumes if required. You can use a mounted volume to /etc/pure-fa-om-exporter/ to pass the `tokens.yaml` file. File must be named `tokens.yaml`.

0 commit comments

Comments
 (0)