Skip to content

Commit

Permalink
dockerfile:fix - update and upgrade packages (#977)
Browse files Browse the repository at this point in the history
Previously we was not updating the installed packages of alpine, which
could cause vulnerability issues, as the image used may contain outdated
packages.

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
  • Loading branch information
matheusalcantarazup authored Feb 10, 2022
1 parent c4184c5 commit 22acb2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deployments/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN env GOOS=linux go build -ldflags '-s -w' -o /bin/horusec ./cmd/app/main.go

FROM docker:20.10-git

RUN apk update && apk upgrade

COPY --from=builder /bin/horusec /usr/local/bin
RUN chmod +x /usr/local/bin/horusec

Expand Down
2 changes: 2 additions & 0 deletions deployments/Dockerfile-gorelease-amd64
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

FROM docker:20.10-git

RUN apk update && apk upgrade

COPY /horusec_linux_amd64 /usr/local/bin/horusec

CMD [ "sh" ]
2 changes: 2 additions & 0 deletions deployments/Dockerfile-gorelease-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

FROM docker:20.10-git

RUN apk update && apk upgrade

COPY /horusec_linux_arm64 /usr/local/bin/horusec

CMD [ "sh" ]

0 comments on commit 22acb2b

Please sign in to comment.